Posted on 2014-12-18 16:24
jacky_zz 阅读(314)
评论(0) 编辑 收藏 引用 所属分类:
ASM
org 100h
; add your code here
mov ax, cs
mov ds, ax
mov ss, ax
mov ax, 0x0000
mov bx, 0x106f
mov ch, 0x04
rotate:
mov cl, 0x04
rol bx, cl
mov al, bl
and al, 0x0f
add al, 0x30
cmp al, 0x3a
jl printit
add al, 0x07
printit:
mov dl, al
mov ah, 0x02
int 0x21
dec ch
jnz rotate
ret