1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-25 03:32:01 +00:00

Correct further size specifiers.

This commit is contained in:
Thomas Harte 2022-05-01 15:21:58 -04:00
parent 0720a391e8
commit c72caef4fd

View File

@ -98,11 +98,11 @@ typename Executor<model, BusHandler>::EffectiveAddress Executor<model, BusHandle
// Operands that don't have effective addresses, which are returned as values. // Operands that don't have effective addresses, which are returned as values.
// //
case AddressingMode::DataRegisterDirect: case AddressingMode::DataRegisterDirect:
ea.value.l = data_[instruction.reg(index)]; ea.value = data_[instruction.reg(index)];
ea.requires_fetch = false; ea.requires_fetch = false;
break; break;
case AddressingMode::AddressRegisterDirect: case AddressingMode::AddressRegisterDirect:
ea.value.l = address_[instruction.reg(index)]; ea.value = address_[instruction.reg(index)];
ea.requires_fetch = false; ea.requires_fetch = false;
break; break;
case AddressingMode::Quick: case AddressingMode::Quick:
@ -159,11 +159,11 @@ typename Executor<model, BusHandler>::EffectiveAddress Executor<model, BusHandle
ea.requires_fetch = true; ea.requires_fetch = true;
} break; } break;
case AddressingMode::AddressRegisterIndirectWithDisplacement: case AddressingMode::AddressRegisterIndirectWithDisplacement:
ea.value.l = address_[instruction.reg(index)] + int16_t(read_pc<uint16_t>()); ea.value.l = address_[instruction.reg(index)].l + int16_t(read_pc<uint16_t>());
ea.requires_fetch = true; ea.requires_fetch = true;
break; break;
case AddressingMode::AddressRegisterIndirectWithIndex8bitDisplacement: case AddressingMode::AddressRegisterIndirectWithIndex8bitDisplacement:
ea.value.l = address_[instruction.reg(index)] + index_8bitdisplacement(); ea.value.l = address_[instruction.reg(index)].l + index_8bitdisplacement();
ea.requires_fetch = true; ea.requires_fetch = true;
break; break;