debug log new PC address after trap
This commit is contained in:
parent
b44c6ffa31
commit
171afe7af9
1 changed files with 2 additions and 2 deletions
4
cpu.cpp
4
cpu.cpp
|
@ -1109,12 +1109,12 @@ void cpu::busError()
|
|||
|
||||
void cpu::trap(const uint16_t vector)
|
||||
{
|
||||
fprintf(stderr, "TRAP %o\n", vector);
|
||||
|
||||
pushStack(getPSW());
|
||||
pushStack(getPC());
|
||||
setPSW(b -> readWord(vector + 2));
|
||||
setPC(b -> readWord(vector + 0));
|
||||
|
||||
fprintf(stderr, "TRAP %o: PC is now %06o\n", vector, getPC());
|
||||
}
|
||||
|
||||
std::pair<std::string, int> cpu::addressing_to_string(const uint8_t mode_register, const uint16_t pc)
|
||||
|
|
Loading…
Add table
Reference in a new issue