;Display register BX value.
displaybx:
push ax
push cx
mov cx,0x4
displaybx_loop:
mov ax,bx
and ax,0xf000
shr ax,12
cmp ax,10
jge displaybx_a_f ;Greater or equal
;0_9
add ax,0x30
jmp displaybx_next
displaybx_a_f:
;A_F
add ax,0x37
displaybx_next:
or ax,0x0e00
;mov ax,0x0e30
int 0x10
sal bx,4
loopnz displaybx_loop
pop cx
pop ax
ret
阅读(863) | 评论(0) | 转发(0) |