1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-05 10:28:58 +00:00

Corrects source/destination order of CMP setup.

This commit is contained in:
Thomas Harte 2019-04-06 20:00:15 -04:00
parent 49a22674ba
commit 03f365e696

View File

@ -827,8 +827,8 @@ struct ProcessorStorageConstructor {
case Decoder::CMP: {
const auto source_register = (instruction >> 9) & 7;
storage_.instructions[instruction].source = &storage_.data_[source_register];
storage_.instructions[instruction].set_destination(storage_, ea_mode, ea_register);
storage_.instructions[instruction].destination = &storage_.data_[source_register];
storage_.instructions[instruction].set_source(storage_, ea_mode, ea_register);
const bool is_long_word_access = mapping.operation == Operation::CMPl;
const bool is_byte_access = mapping.operation == Operation::CMPb;