From abcd86a2947fcf94e7e5bfd41138675ab08746f2 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 9 Oct 2020 22:18:22 -0400 Subject: [PATCH] Fixes accumulator instructions. --- Processors/65816/Implementation/65816Implementation.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Processors/65816/Implementation/65816Implementation.hpp b/Processors/65816/Implementation/65816Implementation.hpp index 3b1ba85f7..54fd9e835 100644 --- a/Processors/65816/Implementation/65816Implementation.hpp +++ b/Processors/65816/Implementation/65816Implementation.hpp @@ -187,7 +187,7 @@ template void Processor::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 void Processor::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; }