mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-08 14:25:05 +00:00
Fixes accumulator instructions.
This commit is contained in:
@@ -187,7 +187,7 @@ template <typename BusHandler> void Processor<BusHandler>::run_for(const Cycles
|
|||||||
case OperationCopyAToData:
|
case OperationCopyAToData:
|
||||||
if(m_flag()) {
|
if(m_flag()) {
|
||||||
data_buffer_.size = 1;
|
data_buffer_.size = 1;
|
||||||
data_buffer_.value = a_.halves.high;
|
data_buffer_.value = a_.halves.low;
|
||||||
} else {
|
} else {
|
||||||
data_buffer_.size = 2;
|
data_buffer_.size = 2;
|
||||||
data_buffer_.value = a_.full;
|
data_buffer_.value = a_.full;
|
||||||
@@ -196,7 +196,7 @@ template <typename BusHandler> void Processor<BusHandler>::run_for(const Cycles
|
|||||||
|
|
||||||
case OperationCopyDataToA:
|
case OperationCopyDataToA:
|
||||||
if(m_flag()) {
|
if(m_flag()) {
|
||||||
a_.halves.high = data_buffer_.value;
|
a_.halves.low = data_buffer_.value;
|
||||||
} else {
|
} else {
|
||||||
a_.full = data_buffer_.value;
|
a_.full = data_buffer_.value;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user