Changed the structure of the emulator 2#
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user