我运行的结果是YES!
NO!
请大家帮忙看下哪儿错了
stack segment stack
dw 256 dup(?)
stack ends
data1 segment
year dw 2000
yes db "yes!",13,10,'$'
no db "no!",13,10,'$'
data1 ends
code1 segment
assume cs:code1,ds:data1
start:
mov ax,data1
mov ds,ax
mov ah,0ah
int 21h
mov year,dx
mov dx,offset year
mov ah,9
int 21h
mov dx,0
mov ax,year
mov bx,400
div bx
cmp bx,0
je _yes
mov dx,0
mov ax,year
mov bx,100
div bx
cmp bx,0
je _no
mov dx,0
mov ax,year
mov bx,4
div bx
cmp bx,0
je _yes
_no: mov dx,offset no
jmp show
_yes:mov dx,offset yes
show:mov ah,9
int 21h
mov ax,4c00h
int 21h
code1 ends
end start