From 325bee853932d39af1138e87d4b280403e98e47b Mon Sep 17 00:00:00 2001 From: Adrian Conlon <98398945+AdrianConlon@users.noreply.github.com> Date: Sat, 29 Jun 2024 22:50:52 +0100 Subject: [PATCH] Couple of small processor improvements --- EightBit/Processor.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/EightBit/Processor.cs b/EightBit/Processor.cs index 4ec72a1..707e230 100644 --- a/EightBit/Processor.cs +++ b/EightBit/Processor.cs @@ -190,8 +190,7 @@ namespace EightBit protected Register16 GetWordPaged(Register16 address) { - this.Bus.Address.Word = address.Word; - return this.GetWordPaged(); + return this.GetWordPaged(address.High, address.Low); } protected Register16 GetWordPaged(byte page, byte offset) @@ -205,8 +204,7 @@ namespace EightBit protected void SetWordPaged(Register16 address, Register16 value) { - this.Bus.Address.Word = address.Word; - this.SetWordPaged(value); + this.SetWordPaged(address.High, address.Low, value); } protected void SetWordPaged(byte page, byte offset, Register16 value)