实验十四
本帖最后由 Wkh19.1 于 2020-4-21 16:28 编辑代码运行后直接卡住了,然后debug没反应,不知里面有啥问题,有大神看到的话请指教!
assume cs:code
data segment
dw '0','/','0','/','0',' ','0',':','0',':','0';22个字节
data ends
code segment
start: mov ax,data
mov ds,ax
mov bh,0
mov bl,9
mov si,0
mov cx,3
push cx
s1:
mov al,bl
out 70h,al
in al,71h
mov ah,al
mov cl,4
shr ah,cl
and al,00001111b
add ah,30h
add al,30h
mov word ptr ds:,ax
add si,4
sub bl,1
pop cx
loop s1
mov bl,4
mov si,12
mov cx,3
push cx
s2:
mov al,bl
out 70h,al
in al,71h
mov ah,al
mov cl,4
shr ah,cl
and al,00001111b
add ah,30h
add al,30h
mov word ptr ds:,ax
add si,4
sub bl,2
pop cx
loop s2
mov bx,0b800h
mov es,bx
mov di,0
mov si,0
mov cx,11
s3:
mov bh,ds:
mov bl,ds:
mov byte ptr es:,bh
mov byte ptr es:,bl
add di,4
add si,2
loop s3
mov ax,4c00h
int 21h
code ends
end start
页:
[1]