编制一个程序把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
    add al,30H
    cmp al,3aH
    jl  print
    add al,7H
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

1+

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
    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

Leave a Reply

Your email address will not be published.