pull/4/head
E. Almqvist 4 years ago
parent 96e0215f6a
commit 950313be3e
  1. 7
      src/elib/convert.asm

@ -20,7 +20,12 @@ hexToASCII:
; convert ax into ASCII (numeric) ; convert ax into ASCII (numeric)
add al, ASCII_OFFSET_NUM ; add 0x30 add al, ASCII_OFFSET_NUM ; add 0x30
cmp al, 0x39 ; if al (char) > 9 cmp al, 0x39 ; if al (char) > "9"
jle hexloop2
add al, 7
hexloop2:
return: return:
mov bx, HEX_OUT mov bx, HEX_OUT

Loading…
Cancel
Save