From: slack Date: Wed, 1 Oct 2008 10:11:12 +0000 (+0200) Subject: added PC to unknown opcode error messages X-Git-Url: http://slack.codemaniacs.com/git/?a=commitdiff_plain;h=b72cd3f5544771cecd0b475429c9b309ed19eb88;p=wenboi.git added PC to unknown opcode error messages --- diff --git a/gbcore.cc b/gbcore.cc index d93f2de..92b2d0c 100644 --- a/gbcore.cc +++ b/gbcore.cc @@ -431,7 +431,7 @@ GameBoy::run_status GameBoy::run_cycle() } else { logger.critical("Unknown sub-opcode ", std::hex, std::setw(2), std::setfill('0'), - sub_opcode, " after 0x10"); + sub_opcode, " after 0x10. PC=0x",regs.PC-2); } cycles_until_next_instruction = 4; break; @@ -1136,7 +1136,7 @@ GameBoy::run_status GameBoy::run_cycle() break; default: - logger.critical("Unknown sub-opcode after 0xCB"); + logger.critical("Unknown sub-opcode after 0xCB. PC=0x",std::hex, regs.PC-2); break; } }