eol75999 发表于 2021-3-11 07:25:43

汇编实验14

assume cs:code
code segment
a1:db 'yy/MM/dd hh:mm:ss',0
b1:db 9,8,7,4,2,0

start:
mov ax,cs
mov ds,ax
mov bx,offset a1
mov si,offset b1
mov cx,6
mov ax,0b800h
mov es,ax
mov di,160*12+31*2

s:   ;
push cx
mov al,
out 70h,al
inal,71h
mov ah,al
mov cl,4
shr ah,cl
and al,00001111b
add ah,30h
add al,30h
mov byte ptr ,ah
mov byte ptr ,al
add bx,3
add si,1
pop cx
loop s



mov bx,offset a1
zz:
mov ch,0
mov cl,
jcxz exit;cx=0跳出
mov byte ptr es:,cl
mov byte ptr es:,2;颜色
add di,2
inc bx
jmp zz


exit:
mov ax,4c00h
int 21h


code ends
end start

页: [1]
查看完整版本: 汇编实验14