求助 汇编编程出现问题
8086指令masm编译器
功能:访问CMOS RAM 实现时间输出 "年/月/日 时:分:秒"
以下指令出现两处错误
assume cs:code,ds:data
data segment
rta db "yy/mm/dd hh:ff:ss$"
ssa db 9,8,7,4,2,0
data ends
code segment
start:mov ax,data
mov ds,ax
t:mov si,offset rta
mov di,0
mov cx,6
s:mov al,ssa[di]
out 70h,al
in al,71h
mov ah,al
push cx
mov cl,4
shr ah,cl
and al,00001111b
add ah,30h
add al,30h
mov ds:[si],ah
mov ds:[si].1,al
add si,3
add di,1
pop cx
loop s
mov ax,0b800h
mov es,ax
mov di,160*12+32*2
mov si,offset rta
mov cx,17
y:mov byte ptr es:[di],ds:[si]
add di,2
add si,1
loop y
in al,60h
cmp al,1
je ok
jmp short t
ok:mov ax,4c00h
int 21h
code ends
end start
不用 int 10h int21h 中断实现
谢谢!