1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Fix perceives S in emulated stack-relative mode.

This commit is contained in:
Thomas Harte 2023-04-14 00:04:44 -04:00
parent 363fd0f781
commit 107cb18df4

View File

@ -421,7 +421,7 @@ template <typename BusHandler, bool uses_ready_line> void Processor<BusHandler,
continue;
case OperationConstructStackRelative:
data_address_ = (registers_.s.full + instruction_buffer_.value) & 0xffff;
data_address_ = (stack_address() + instruction_buffer_.value) & 0xffff;
data_address_increment_mask_ = 0x00'ff'ff;
continue;