程序:
DATA SEGMENT
X DB xxx
M0 Db 'This is zero!$'
M1 db '+'
M2 db '-'
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
MAIN:
MOV AX,DATA
MOV DS,AX
MOV AL,X
CMP AL,0
JG MAX
JL MIN
lea dx,M0
mov ah,09h
int 21H
next:
mov ah,4ch
int 21h
MAX:
mov dl,M1
mov ah,02h
int 21H
jmp next
MIN:
mov dl,M2
mov ah,02H
int 21H
jmp next
code ends
end MAIN
2021-12-3