From 950313be3e85fb3ef4d424034d2fa7442ab5c972 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Mon, 25 Jan 2021 09:15:43 +0100 Subject: [PATCH] Fix --- src/elib/convert.asm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/elib/convert.asm b/src/elib/convert.asm index 22710e5..757ae4a 100644 --- a/src/elib/convert.asm +++ b/src/elib/convert.asm @@ -20,7 +20,12 @@ hexToASCII: ; convert ax into ASCII (numeric) 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: mov bx, HEX_OUT