代码:

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

0
Posted in 汇编语言

Leave a Comment:

电子邮件地址不会被公开。

  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

    回复