注册 登录
编程论坛 汇编论坛

[求助]通用寄存器显示的问题

jt1026 发布于 2006-06-02 17:47, 560 次点击
code segment
main proc far
assume cs:code
start:
push ds
sub ax,ax
push ax
mov ch,4
;mov dx,1100011111010100b
mov bx,dx

rotate:
mov cl,4
rol bx,cl
mov al,bl
and al,0fh
add al,30h
cmp al,3ah
jl print
add al,7h
print:
mov dl,al
mov ah,2h
int 21h
dec ch
jnz rotate
ret
main endp
code ends
end

原本想显示DX里的内容,只好通过把DX里的值传递给BX,不知道有没有更好的方法,
跳过BX这一关,进而提升速度
1 回复
#2
xxygdufs2006-06-03 07:42
你想表达什么?
1