Add BRK as an unconditional branch (fixes disassembling into data for BRK instruction)
This commit is contained in:
parent
b200db5d68
commit
885bedb4b4
1 changed files with 1 additions and 0 deletions
|
@ -164,6 +164,7 @@ bool Disassembler::IsJump(uint8_t opCode)
|
||||||
bool Disassembler::IsUnconditionalJump(uint8_t opCode)
|
bool Disassembler::IsUnconditionalJump(uint8_t opCode)
|
||||||
{
|
{
|
||||||
return (
|
return (
|
||||||
|
opCode == 0x00 || //BRK
|
||||||
opCode == 0x40 || //RTI
|
opCode == 0x40 || //RTI
|
||||||
opCode == 0x60 || //RTS
|
opCode == 0x60 || //RTS
|
||||||
opCode == 0x6C || //JMP (Indirect)
|
opCode == 0x6C || //JMP (Indirect)
|
||||||
|
|
Loading…
Add table
Reference in a new issue