mirror of
https://github.com/TomHarte/CLK.git
synced 2025-10-05 14:16:33 +00:00
Make BSR operate like the other offsets: the flow controller gets whatever was in the opcode.
This commit is contained in:
@@ -483,7 +483,7 @@ template <Model model, typename BusHandler>
|
||||
void Executor<model, BusHandler>::State::bsr(uint32_t offset) {
|
||||
sp.l -= 4;
|
||||
write<uint32_t>(sp.l, program_counter.l);
|
||||
program_counter.l = instruction_address + offset;
|
||||
program_counter.l = instruction_address + offset + 2;
|
||||
}
|
||||
|
||||
template <Model model, typename BusHandler>
|
||||
|
Reference in New Issue
Block a user