判断闰年程序无法输出结果
data segment
buf1 db 'yes$'
buf2 db 'no$'
buf3 dw 1995
data ends
code segment
assume cs:code,ds:data
start: mov ax,data
mov ds,ax
mov si,offset buf3
mov ax,[si]
mov dx,0
mov bx,4
div bx
and dx,0FFFFH
jnz fal
mov bx,100
mov ax,[si]
mov dx,0
div bx
and dx,0FFFFH
jnz tru
mov bx,400
mov ax,[si]
mov dx,0
div bx
and ax,0FFFFH
jnz fal
jmp tru
fal: mov ah,9
lea dx,buf2
int 21h
tru: mov ah,9
lea dx,buf1
int 21h
code ends
end start
无法输出yes和no