STACK_SEG SEGMENT STACK
STACK_BUF DW 120 DUP(?)
TOP EQU $-STACK_BUF
STACK_SEG ENDS
DATA_SEG SEGMENT PARA
msg DB 0dh,0ah,'20102101tangke$'
DATA_SEG ENDS
CODE_SEG SEGMENT PARA
;------------------------------------------------------
MAIN PROC FAR
ASSUME CS:CODE_SEG,DS:DATA_SEG
ASSUME SS:STACK_SEG
START:
PUSH DS
XOR AX,AX
PUSH AX
MOV AX,STACK_SEG
MOV SS,AX
MOV SP,TOP
MOV AX,DATA_SEG
MOV DS,AX
LEA DX,msg
MOV AH,09h
INT 21h
RET
MAIN ENDP
;------------------------------------------------------
CODE_SEG ENDS
END START
以上代码执行后,不打印.
------解决方案--------------------------------------------------------
放断点调试
另外你是在windows里面运行吗?