From f811dce0eb93b2182a739c42438ca770c11a77e4 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Wed, 27 Jan 2021 11:07:33 +0100 Subject: [PATCH] Finsished hex conversion --- src/elib/convert.asm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/elib/convert.asm b/src/elib/convert.asm index 7cc347f..b54f1b4 100644 --- a/src/elib/convert.asm +++ b/src/elib/convert.asm @@ -26,8 +26,15 @@ hexToASCII: add al, 7 ; 7 distance from "A" hexloop2: + ; Write the char into the HEX_OUT string mov bx, HEX_OUT + 5 + sub bx, cx + mov [bx], al ; write the char into the string + ror dx, 4 ; "rotate" the string + + inc cx ; increment and go onto next char + jmp hexloop return: mov bx, HEX_OUT