1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-21 17:16:44 +00:00

Completes 65816 addressing mode tests and corresponding fixes.

This commit is contained in:
Thomas Harte
2020-10-14 22:00:52 -04:00
parent e511d33a7c
commit 3c6adc1ff4
3 changed files with 64 additions and 5 deletions
@@ -360,8 +360,9 @@ template <typename BusHandler> void Processor<BusHandler>::run_for(const Cycles
continue;
case OperationConstructStackRelativeIndexedIndirect:
data_address_ = (instruction_buffer_.value + y()) & 0xffff;
data_address_ = data_bank_ + data_buffer_.value + y();
data_address_increment_mask_ = 0xff'ff'ff;
data_buffer_.clear();
continue;
case OperationConstructPER:
@@ -325,6 +325,7 @@ struct ProcessorStorage {
private:
uint8_t *byte(int pointer) {
assert(pointer >= 0 && pointer < 4);
#if TARGET_RT_BIG_ENDIAN
return reinterpret_cast<uint8_t *>(&value) + (3 ^ pointer);
#else