diff --git a/Source/Project64/N64 System/Mips/Memory Labels Class.cpp b/Source/Project64/N64 System/Mips/Memory Labels Class.cpp index 6e2892bf4..1047a7c67 100644 --- a/Source/Project64/N64 System/Mips/Memory Labels Class.cpp +++ b/Source/Project64/N64 System/Mips/Memory Labels Class.cpp @@ -30,12 +30,12 @@ DWORD CMemoryLabel::AsciiToHex (char * HexValue) } else { - if(Current < 'A') - Current += 'A' - 'a'; + if(Current > 'F') + Current -= 32; //32 is the distance between A and a if (Current >= 'A' && Current <= 'F') { - Value += Current + 10 - 'A'; + Value += Current - 55; //55 is the code for 'A' less 10 } else {