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 | 979723533989a38660ece630b9e458cb3aa61bda (patch) | |
tree | 99ffd87c42c7179561877254431cb78fca02a5f3 /src/utils/utils.cc | |
parent | 282aff5a3d1b6f9678453dfa3e216849d5b1d954 (diff) |
clarify macro names, implement load in CLI, fix many display issues
Diffstat (limited to 'src/utils/utils.cc')
-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; } |