diff options
author | bd <bdunahu@operationnull.com> | 2025-03-11 17:24:49 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-11 17:24:49 -0400 |
commit | 256fd73b42ae7d10fe0190984d032f839a2127bd (patch) | |
tree | 99ffd87c42c7179561877254431cb78fca02a5f3 /src/utils | |
parent | d743af4b5df01e3a75725912bee1d00b8fe573dd (diff) |
clarify macro names, implement load in CLI, fix many display issues
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/utils.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/utils.cc b/src/utils/utils.cc index b5a4d55..87ce488 100644 --- a/src/utils/utils.cc +++ b/src/utils/utils.cc @@ -31,7 +31,7 @@ const std::string string_format(const char *const zcFormat, ...) int wrap_address(int address) { if (address < 0){ - return ((address % MEM_SIZE) + MEM_SIZE) % MEM_SIZE; + return ((address % MEM_LINES) + MEM_LINES) % MEM_LINES; } - return address % MEM_SIZE; + return address % MEM_LINES; } |