Make debug hexprint work under PCem too
This commit is contained in:
parent
de098cb9f3
commit
4dc7266f6a
|
@ -10,18 +10,19 @@ hexprint8:
|
||||||
mov cl, al
|
mov cl, al
|
||||||
xor bx, bx
|
xor bx, bx
|
||||||
|
|
||||||
mov ah, 0xe
|
|
||||||
shr al, 1
|
shr al, 1
|
||||||
shr al, 1
|
shr al, 1
|
||||||
shr al, 1
|
shr al, 1
|
||||||
shr al, 1
|
shr al, 1
|
||||||
mov bl, al
|
mov bl, al
|
||||||
mov al, [.digits + bx]
|
mov al, [.digits + bx]
|
||||||
|
mov ah, 0xe
|
||||||
int 0x10
|
int 0x10
|
||||||
|
|
||||||
mov bl, 0xf
|
mov bl, 0xf
|
||||||
and bl, cl
|
and bl, cl
|
||||||
mov al, [.digits + bx]
|
mov al, [.digits + bx]
|
||||||
|
mov ah, 0xe
|
||||||
int 0x10
|
int 0x10
|
||||||
|
|
||||||
pop cx
|
pop cx
|
||||||
|
|
Loading…
Reference in New Issue