问题描述
- 下面的汇编程序应该动态的显示时钟,谁能帮忙修改一下,万分感谢
-
assume cs : code , ds : datadata segment
db 9 , 8 , 7 , 4 , 2,0 db '///:: '
data ends
stack segment
dw 8 dup(0)
stack endscode segment
start:
mov ax , data
mov ds , axmov ax , stack mov ss , ax mov sp , 10F mov si , 0 mov di , 6 mov ax , 0B800h mov es , ax mov cx , 6
l: mov al , [si]
call transmov es:[bx] , ah mov es:[bx+2] , al mov al ,ds:[di] mov es:[bx+4] , al inc si inc di add bx , 6 loop l ;jmp short start //当把这个注释去掉之后程序就不对了 mov ax , 4c00h int 21h
trans:
push cx
out 70h , al
in al , 71hmov ah , al mov cl , 4 shr ah , cl and al , 00001111b add ah , 30h add al , 30h pop cx ret
code ends
end start
时间: 2024-09-30 06:40:29