code segment
assume cs:code
;.model tiny
start:
mov ax,13h
int 10h
call testt
jmp short start
testt:
in al,60h
cmp al,1
je exit
ret
exit:
mov ax,3
int 10h
mov ah,4ch
int 21h
ret
code ends
end start
可以说是我第一次写的汇编程序了
最新推荐文章于 2024-09-08 18:54:07 发布