下面是我的具体编程,请大虾们帮忙看看。输出结果怎么不对撒。。
title jisuan
data segment
x db 1
y db 2
s dw ?
data ends
code segment
assume cs:code,ds:data
start: mov ax,data
mov ds,ax
mov al,2
imul y
mov s,ax
mov ax,s
mov ch,4
loop1:mov cl,4
rol ax,cl
push ax
and ax,000fh
cmp al,9
ja l2
add al,30h
jmp l1
l2: add al,37h
l1: mov dl,al
mov ah,2
int 21h
pop ax
dec ch
jnz loop1
mov ah,4ch
int 21h
code ends
end start