TRAP logging

This commit is contained in:
folkert van heusden 2022-03-19 16:19:48 +01:00
parent a4fadfca09
commit 7173688bfb

View file

@ -1084,8 +1084,6 @@ bool cpu::misc_operations(const uint16_t instr)
void cpu::busError()
{
fprintf(stderr, "BUS ERROR\n");
trap(4);
}
@ -1097,7 +1095,7 @@ void cpu::trap(const uint16_t vector)
setPSW(b->readWord(vector + 2));
setPC (b->readWord(vector + 0));
fprintf(stderr, "TRAP %o: PC is now %06o\n", vector, getPC());
D(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)