1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-27 18:55:48 +00:00

Capture interrupt input at the end of an access cycle, not the beginning.

All still a guess.
This commit is contained in:
Thomas Harte 2022-06-03 15:39:53 -04:00
parent a61f7e38b6
commit 542126194a

View File

@ -318,9 +318,9 @@ void Processor<BusHandler, dtack_is_implicit, permit_overrun, signal_will_perfor
// Reads one futher word from the program counter and inserts it into
// the prefetch queue.
#define Prefetch() \
captured_interrupt_level_ = bus_interrupt_level_; \
prefetch_.high = prefetch_.low; \
ReadProgramWord(prefetch_.low)
ReadProgramWord(prefetch_.low) \
captured_interrupt_level_ = bus_interrupt_level_;
// Raises the exception with integer vector x — x is the vector identifier,
// not its address.