mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-11 08:30:55 +00:00
Honours interrupt vector.
This commit is contained in:
parent
e773b331cd
commit
f5dcff2f29
@ -219,7 +219,7 @@ template<bool is_brk> inline void Executor::perform_interrupt(uint16_t vector) {
|
||||
push(uint8_t(program_counter_ >> 8));
|
||||
push(uint8_t(program_counter_ & 0xff));
|
||||
push(flags() | (is_brk ? 0x10 : 0x00));
|
||||
set_program_counter(uint16_t(memory_[0x1ff4] | (memory_[0x1ff5] << 8)));
|
||||
set_program_counter(uint16_t(memory_[vector] | (memory_[vector+1] << 8)));
|
||||
}
|
||||
|
||||
template <Operation operation, AddressingMode addressing_mode> void Executor::perform() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user