Implemented a few more OpCodes. 0xDD19 next

This commit is contained in:
2026-04-20 01:19:47 +01:00
parent 1ccacb55d5
commit e53661ce8a
2 changed files with 44 additions and 1 deletions

View File

@@ -849,6 +849,11 @@ namespace Desktop
mnemonic = $"LD (0x{nn:X4}), IX";
instructionLength = 4;
}
else if (ddOpcode == 0x23) // INC IX
{
mnemonic = "INC IX";
instructionLength = 2;
}
else if (ddOpcode == 0x24) // INC IXH
{
mnemonic = "INC IXH";
@@ -871,6 +876,11 @@ namespace Desktop
mnemonic = $"LD IX, (0x{nn:X4})";
instructionLength = 4;
}
else if (ddOpcode == 0x2B) // DEC IX
{
mnemonic = "DEC IX";
instructionLength = 2;
}
else if (ddOpcode == 0x2D) // DEC IXL
{
mnemonic = "DEC IXL";
@@ -1093,6 +1103,7 @@ namespace Desktop
mnemonic = $"LD SP, (0x{nn:X4})";
instructionLength = 4;
break;
case 0xA0: mnemonic = "LDI"; instructionLength = 2; break;
case 0xB0:
mnemonic = "LDIR";
instructionLength = 2;