From c41ed191dc3ff3602c566c7315b3e68d48308aba Mon Sep 17 00:00:00 2001
From: Thomas Harte <thomas.harte@gmail.com>
Date: Thu, 17 Aug 2023 14:50:55 -0400
Subject: [PATCH] Fix S top byte overwrite.

---
 Processors/65816/Implementation/65816Implementation.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Processors/65816/Implementation/65816Implementation.hpp b/Processors/65816/Implementation/65816Implementation.hpp
index b980bbe73..be305499a 100644
--- a/Processors/65816/Implementation/65816Implementation.hpp
+++ b/Processors/65816/Implementation/65816Implementation.hpp
@@ -69,7 +69,7 @@ template <typename BusHandler, bool uses_ready_line> void Processor<BusHandler,
 					memory_lock_ = false;
 
 					// Reenforce the top byte of S if applicable.
-					registers_.s.halves.high = stack_address();
+					registers_.s.full = stack_address();
 				} continue;
 
 				case OperationDecode: {