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

Fix CMPS.

This commit is contained in:
Thomas Harte 2023-10-31 21:58:32 -04:00
parent 9538491ee9
commit da2aea94e3

View File

@ -1408,7 +1408,7 @@ void cmps(const InstructionT &instruction, AddressT &eCX, AddressT &eSI, Address
}
IntT lhs = memory.template access<IntT, AccessType::Read>(instruction.data_segment(), eSI);
const IntT rhs = memory.template access<IntT, AccessType::Write>(Source::ES, eDI);
const IntT rhs = memory.template access<IntT, AccessType::Read>(Source::ES, eDI);
eSI += status.direction<AddressT>() * sizeof(IntT);
eDI += status.direction<AddressT>() * sizeof(IntT);