From 45a57eea8608b93e683328e7b7e5291ce1231a7e Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Sat, 21 Mar 2026 09:49:09 +0000 Subject: [PATCH] Coupld of small readability changes --- Z80/Z80.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Z80/Z80.cs b/Z80/Z80.cs index c823ad5..2792500 100644 --- a/Z80/Z80.cs +++ b/Z80/Z80.cs @@ -1315,7 +1315,11 @@ namespace Z80 break; case 1: // 8-bit loading - if (!(memoryZ && memoryY)) + if (memoryZ && memoryY) + { + this.LowerHALT(); // Exception (replaces LD (HL), (HL)) + } + else { var normal = true; if (this._displaced) @@ -1367,10 +1371,6 @@ namespace Z80 this.R(y, value); } } - else - { - this.LowerHALT(); // Exception (replaces LD (HL), (HL)) - } break; case 2: @@ -2334,7 +2334,7 @@ namespace Z80 private void ReadPort(byte port) { - this.Bus.Address.Assign(port, this.Bus.Data = this.A); + this.Bus.Address.Assign(port, this.A); this.ReadPort(); this.MEMPTR.Increment(); }