汇编语言程序设计上机实验汇编程序的基本结构 第2页
.data
bufX DB 77h
bufY DB 43h
bufZ DB ?
.code
main PROC
mov ax,@data
mov ds,ax
mov al,bufX
cmp al,bufY
ja DONE
mov al,bufY
DONE:
mov bufZ,al
mov ah,4ch
int 21h
main ENDP
END main
.data
bufX DW 07dh
signX DB 0ffh
.code
main PROC
mov ax,@data
mov ds,ax
mov al,bufX
or al,al
js DONE
NOT signX
DONE:
mov ah,4ch
int 21h
main ENDP
END main