# 编制一个程序把BX寄存器内的二进制数用十六进制的形式在屏幕上显示出来

code segment
assume cs:code
start:
mov bx,1234H
sub ax,ax
mov ch,4
rotate:
mov cl,4
rol bx,cl
mov al,bl
and al,0fH
cmp al,3aH
jl  print
print:
mov dl,al
mov ah,2
int 21H
dec ch
jnz rotate
mov dl,'H'
mov ah,2
int 21h
mov ah,4ch
int 21h
code ends
end start


0

## 4 thoughts on “编制一个程序把BX寄存器内的二进制数用十六进制的形式在屏幕上显示出来”

1. I like the valuable information you provide in your articles. I’ll bookmark your blog and check again here frequently. I’m quite sure I’ll learn many new stuff right here! Good luck for the next!

0
2. i love this exceptional post

0
3. I’m not sure exactly why but this web site is loading incredibly slow
for me. Is anyone else having this problem or is it a problem on my
end? I’ll check back later and see if the problem still exists.

0
1. Sorry, there are two reasons. One is that the server is in China and access speed abroad is slow. On the other hand, the server bandwidth is low, mainly because I’m poor.

0