From 5be5aaccfb62dadba287206b8be947688653b1b4 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Fri, 15 Jan 2021 11:53:02 +0100 Subject: [PATCH] BEgan work on hex to ascii --- src/elib/convert.asm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/elib/convert.asm diff --git a/src/elib/convert.asm b/src/elib/convert.asm new file mode 100644 index 0000000..85860e7 --- /dev/null +++ b/src/elib/convert.asm @@ -0,0 +1,15 @@ +HEX_OUT: db "0x0000", ASCII_END + +; SR to convert hex values into ASCII strings +; This SR is going to mess up some registers +; since it fills the register with the desired +; pointer toward the string. +hexToASCII: + mov cx, 0 ; incrementor + + hexloop: + + + return: + mov bx, HEX_OUT + ret