Skip to content

Commit

Permalink
Print unhandeled opcodes as uint8_t (#633)
Browse files Browse the repository at this point in the history
* Update gfx_pc.cpp

* Update gfx_pc.cpp
  • Loading branch information
MegaMech committed Jun 4, 2024
1 parent cbaab19 commit f6262bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/graphic/Fast3D/gfx_pc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3828,7 +3828,8 @@ const char* GfxGetOpcodeName(int8_t opcode) {
if (ucode_handlers[ucode_handler_index]->contains(opcode)) {
return ucode_handlers[ucode_handler_index]->at(opcode).first;
} else {
SPDLOG_CRITICAL("Unhandled OP code: 0x{:X}, for loaded ucode: {}", opcode, (uint32_t)ucode_handler_index);
SPDLOG_CRITICAL("Unhandled OP code: 0x{:X}, for loaded ucode: {}", (uint8_t)opcode,
(uint32_t)ucode_handler_index);
return nullptr;
}
}
Expand Down Expand Up @@ -3868,7 +3869,8 @@ static void gfx_step() {
return;
}
} else {
SPDLOG_CRITICAL("Unhandled OP code: 0x{:X}, for loaded ucode: {}", opcode, (uint32_t)ucode_handler_index);
SPDLOG_CRITICAL("Unhandled OP code: 0x{:X}, for loaded ucode: {}", (uint8_t)opcode,
(uint32_t)ucode_handler_index);
}
}

Expand Down

0 comments on commit f6262bd

Please sign in to comment.