Add BRK as an unconditional branch (fixes disassembling into data for BRK instruction)

This commit is contained in:
Dwedit 2021-04-13 13:16:32 -04:00
parent b200db5d68
commit 885bedb4b4

View file

@ -164,6 +164,7 @@ bool Disassembler::IsJump(uint8_t opCode)
bool Disassembler::IsUnconditionalJump(uint8_t opCode)
{
return (
opCode == 0x00 || //BRK
opCode == 0x40 || //RTI
opCode == 0x60 || //RTS
opCode == 0x6C || //JMP (Indirect)