mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-09 05:25:01 +00:00
Capture interrupt input at the end of an access cycle, not the beginning.
All still a guess.
This commit is contained in:
@@ -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
|
// Reads one futher word from the program counter and inserts it into
|
||||||
// the prefetch queue.
|
// the prefetch queue.
|
||||||
#define Prefetch() \
|
#define Prefetch() \
|
||||||
captured_interrupt_level_ = bus_interrupt_level_; \
|
|
||||||
prefetch_.high = prefetch_.low; \
|
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,
|
// Raises the exception with integer vector x — x is the vector identifier,
|
||||||
// not its address.
|
// not its address.
|
||||||
|
Reference in New Issue
Block a user