mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-21 04:33:56 +00:00
Fix nibble parsing
This commit is contained in:
@@ -125,7 +125,7 @@ namespace utils::string
|
||||
|
||||
if (lower >= 'a' && lower <= 'f')
|
||||
{
|
||||
return static_cast<std::byte>(lower - 'a');
|
||||
return static_cast<std::byte>(10 + (lower - 'a'));
|
||||
}
|
||||
|
||||
return static_cast<std::byte>(0);
|
||||
|
||||
Reference in New Issue
Block a user