From b5397045db290c234a1e779b64538933f93b37b6 Mon Sep 17 00:00:00 2001 From: Oxore Date: Mon, 3 Oct 2022 02:05:09 +0300 Subject: Begin implementing DMA: impl memory to VRAM --- emulator.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'emulator.cpp') 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); } -- cgit v1.2.3