diff options
author | Oxore <oxore@protonmail.com> | 2022-10-03 02:05:09 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2022-10-03 02:05:09 +0300 |
commit | b5397045db290c234a1e779b64538933f93b37b6 (patch) | |
tree | 16feb8aabd2f3ae1714e3fbaeea79fc89a6e6c2b /emulator.cpp | |
parent | 872d2c2766536a372af5d1048bed7514078f9d31 (diff) |
Begin implementing DMA: impl memory to VRAM
Diffstat (limited to 'emulator.cpp')
-rw-r--r-- | emulator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/emulator.cpp b/emulator.cpp index de9be02..7b2e8a8 100644 --- a/emulator.cpp +++ b/emulator.cpp @@ -216,6 +216,7 @@ static std::string CreateResponse( constexpr size_t value_size = std::string_view("12345678").length(); char value[value_size + 1]{}; const int ret = snprintf(value, value_size + 1, "%08x", state.registers[i]); + (void) ret; assert(ret == value_size); result += std::string(value, value_size); } @@ -244,6 +245,7 @@ static std::string CreateResponse( constexpr size_t value_size = std::string_view("12345678").length(); char value_str[value_size + 1]{}; const int ret = snprintf(value_str, value_size + 1, "%08x", value); + (void) ret; assert(ret == value_size); return std::string(value_str, value_size); } |