1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-10-02 19:54:35 +00:00

Fixes accumulator instructions.

This commit is contained in:
Thomas Harte 2020-10-09 22:18:22 -04:00
parent 451f83ba51
commit abcd86a294

View File

@ -187,7 +187,7 @@ template <typename BusHandler> void Processor<BusHandler>::run_for(const Cycles
case OperationCopyAToData:
if(m_flag()) {
data_buffer_.size = 1;
data_buffer_.value = a_.halves.high;
data_buffer_.value = a_.halves.low;
} else {
data_buffer_.size = 2;
data_buffer_.value = a_.full;
@ -196,7 +196,7 @@ template <typename BusHandler> void Processor<BusHandler>::run_for(const Cycles
case OperationCopyDataToA:
if(m_flag()) {
a_.halves.high = data_buffer_.value;
a_.halves.low = data_buffer_.value;
} else {
a_.full = data_buffer_.value;
}