1、题目
2、个人代码
assume cs:code
data segment
;数据段中设置标号不加冒号
time db '00/00/00 00:00:00','$'
list db 9,8,7,4,2,0
data ends
code segment
start:
mov ax,data
mov ds,ax
mov di,offset time
mov si,offset list
mov cx,6
s:
push cx
mov al,[si]
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 [di],ah
mov [di+1],al
inc si
add di,3
pop cx
loop s
;21h号中断例程9号子程序-在光标位置显示字符串
mov dx,offset time;ds:dx指向字符串
mov ah,9;9号子程序
int 21h
mov ax,4c00h
int 21h
code ends
end start
3、结果