From ad3a0b50402d01fbd9f4050a4af66d17e3a9466e Mon Sep 17 00:00:00 2001 From: Marc Parsons Date: Tue, 21 Apr 2026 10:38:14 +0100 Subject: [PATCH] Changed the structure of the emulator 2# --- Core/Cpu/Z80.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Cpu/Z80.cs b/Core/Cpu/Z80.cs index ae338d8..a44bd0a 100644 --- a/Core/Cpu/Z80.cs +++ b/Core/Cpu/Z80.cs @@ -9,7 +9,7 @@ namespace Core.Cpu //T-State counter public long TotalTStates { get; set; } - public int InterruptMode { get; private set; } = 0; // Defaults to 0 on power-up + public int InterruptMode { get; private set; } = 0; // Interrupt Flip-Flops public bool IFF1 { get; private set; } = false; @@ -58,7 +58,7 @@ namespace Core.Cpu public void Reset() { PC = 0x0000; - SP = 0xFFFF; // The Z80 initializes SP to 0xFFFF on boot + SP = 0xFFFF; // Main Registers AF.Word = 0;