From 0619e49eaca79c217cee8fb80d38c9233a5f3c9a Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 10 Oct 2020 22:00:17 -0400 Subject: [PATCH] Takes a short at TSB and TRB. Three to go. --- .../65816/Implementation/65816Implementation.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Processors/65816/Implementation/65816Implementation.hpp b/Processors/65816/Implementation/65816Implementation.hpp index 9a8ab646d..19a4e5278 100644 --- a/Processors/65816/Implementation/65816Implementation.hpp +++ b/Processors/65816/Implementation/65816Implementation.hpp @@ -669,6 +669,16 @@ template void Processor::run_for(const Cycles flags_.set_z(data_buffer_.value & a_.full, m_shift_); break; + case TRB: + flags_.set_z(data_buffer_.value & a_.full, m_shift_); + data_buffer_.value &= ~a_.full; + break; + + case TSB: + flags_.set_z(data_buffer_.value & a_.full, m_shift_); + data_buffer_.value |= a_.full; + break; + // // Branches. // @@ -807,7 +817,6 @@ template void Processor::run_for(const Cycles } break; // TODO: - // TRB, TSB, // STP, WAI, // RTL,