1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-05 10:28:58 +00:00

Corrects return address for TRAP.

This commit is contained in:
Thomas Harte 2019-04-20 15:49:32 -04:00
parent ef33b004f9
commit a90f12dab7

View File

@ -701,6 +701,9 @@ template <class T, bool dtack_is_implicit> void Processor<T, dtack_is_implicit>:
precomputed_addresses_[1] = address_[7].full - 6;
precomputed_addresses_[2] = address_[7].full - 4;
address_[7].full -= 6;
// The program counter to push is actually one slot ago.
program_counter_.full -= 2;
} break;
/*