JSR disassembly
This commit is contained in:
parent
ca39aafe0b
commit
9226f63eda
1 changed files with 2 additions and 2 deletions
4
cpu.cpp
4
cpu.cpp
|
@ -1591,9 +1591,9 @@ void cpu::disassemble()
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((instruction & 0b1111111000000000) == 0b0000100000000000) {
|
if ((instruction & 0b1111111000000000) == 0b0000100000000000) {
|
||||||
auto dst_text = addressing_to_string(src_register, (pc + 2) & 65535);
|
auto dst_text = addressing_to_string(dst_register, (pc + 2) & 65535);
|
||||||
|
|
||||||
text = std::string("JSR ") + dst_text.first;
|
text = format("JSR R%d,", src_register & 7) + dst_text.first;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((instruction & 0b1111111111111000) == 0b0000000010000000)
|
if ((instruction & 0b1111111111111000) == 0b0000000010000000)
|
||||||
|
|
Loading…
Add table
Reference in a new issue