From 174148100cc79255ba941762cc45ccd8b850a8e3 Mon Sep 17 00:00:00 2001 From: Clanmaster21 Date: Tue, 15 Oct 2019 22:01:48 +0100 Subject: [PATCH] Fixed the new parseHex I accidentally did `add 0xe9` without specifying `a` --- kernel/parse.asm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/parse.asm b/kernel/parse.asm index fda3a6e..8f7397b 100644 --- a/kernel/parse.asm +++ b/kernel/parse.asm @@ -16,12 +16,11 @@ parseHex: sub 0xf6 ; maps to 0-9 and carries if not a digit ret nc -.alpha: and 0xdf ; converts lowercase to uppercase - add 0xe9 ; map 0x11-x017 onto 0xFA - 0xFF + add a, 0xe9 ; map 0x11-x017 onto 0xFA - 0xFF sub 0xfa ; map onto 0-6 ret c - ; We have alpha. + ; we have an A-F digit add a, 10 ; C is clear, map back to 0xA-0xF ret