3 ZEXALL tests now pass. Removed timing to speed up (temp)

This commit is contained in:
2026-04-23 12:34:25 +01:00
parent 02680cb92d
commit 112b6d15fe
3 changed files with 184 additions and 116 deletions

View File

@@ -1112,8 +1112,12 @@ namespace Desktop
case 0xFD:
{
byte fdOpcode = _memoryBus.Read((ushort)(currentPc + 1));
if (fdOpcode == 0x19) // ADD IY, DE
if (fdOpcode == 0x09) // ADD IY, BC
{
mnemonic = $"ADD IY, BC";
instructionLength = 2;
}
else if (fdOpcode == 0x19) // ADD IY, DE
{
mnemonic = $"ADD IY, DE";
instructionLength = 2;
@@ -1124,6 +1128,11 @@ namespace Desktop
mnemonic = $"LD IY, 0x{iyVal:X4}";
instructionLength = 4;
}
else if (fdOpcode == 0x29) //Add IY, IY
{
mnemonic = $"ADD IY, IY";
instructionLength = 2;
}
else if (fdOpcode == 0x34) // INC IY
{
//sbyte d = (sbyte)_memoryBus.Read((ushort)(currentPc + 2));
@@ -1290,7 +1299,7 @@ namespace Desktop
mnemonic = "POP IY";
instructionLength = 2;
}
else if(fdOpcode == 0xE5)
else if (fdOpcode == 0xE5)
{
mnemonic = "PUSH IY";
instructionLength = 2;