How to make it? Thanks!

DSEG SEGMENT PARA PUBLIC 'DATA'
DATA DB 15H
SUM DB 0H
DSEG ENDS

SSEG SEGMENT PARA STACK 'DATA'
DB 256 DUP(0)
SSEG ENDS

CSEG SEGMENT PARA PUBLIC 'CODE'
ASSUME CS:CSEG,ES:SSEG,DS:DSEG
START PROC FAR
PUSH DS
MOV AX,0
PUSH AX
MOV AX,DSEG
MOV DS,AX
MOV AL,DATA
ADD AL,12H
MOV SUM,AL
RET
START ENDP
CSEG ENDS
END START

How to make it under Masm6? I click Project->Assemble & Link,but ML.EXE display some error messages? how can i do, thanks!

Comments

  • : DSEG SEGMENT PARA PUBLIC 'DATA'
    : DATA DB 15H
    : SUM DB 0H
    : DSEG ENDS
    :
    : SSEG SEGMENT PARA STACK 'DATA'
    : DB 256 DUP(0)
    : SSEG ENDS
    :
    : CSEG SEGMENT PARA PUBLIC 'CODE'
    : ASSUME CS:CSEG,ES:SSEG,DS:DSEG
    : START PROC FAR
    : PUSH DS
    : MOV AX,0
    : PUSH AX
    : MOV AX,DSEG
    : MOV DS,AX
    : MOV AL,DATA
    : ADD AL,12H
    : MOV SUM,AL
    : RET
    : START ENDP
    : CSEG ENDS
    : END START
    :
    : How to make it under Masm6? I click Project->Assemble & Link,but ML.EXE display some error messages? how can i do, thanks!
    :
    :
    [BLUE]
    What errors? It works ok with Masm 6.11

    ~MT2002[/BLUE]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion