Sound fixed and complete. More OpCodes to implement
This commit is contained in:
@@ -835,6 +835,20 @@ namespace Desktop
|
||||
mnemonic = $"LD L, (IX{sign}{d})";
|
||||
instructionLength = 3;
|
||||
}
|
||||
else if (ddOpcode == 0x71) // LD (IX+d), B
|
||||
{
|
||||
sbyte offset = (sbyte)_memoryBus.Read((ushort)(currentPc + 2));
|
||||
string sign = offset >= 0 ? "+" : "";
|
||||
mnemonic = $"LD (IX{sign}{offset}), B";
|
||||
instructionLength = 3;
|
||||
}
|
||||
else if (ddOpcode == 0x71) // LD (IX+d), C
|
||||
{
|
||||
sbyte offset = (sbyte)_memoryBus.Read((ushort)(currentPc + 2));
|
||||
string sign = offset >= 0 ? "+" : "";
|
||||
mnemonic = $"LD (IX{sign}{offset}), C";
|
||||
instructionLength = 3;
|
||||
}
|
||||
else if (ddOpcode == 0x72) // LD (IX+d), D
|
||||
{
|
||||
sbyte offset = (sbyte)_memoryBus.Read((ushort)(currentPc + 2));
|
||||
@@ -1154,6 +1168,13 @@ namespace Desktop
|
||||
mnemonic = $"LD (IY{sign}{d}), D";
|
||||
instructionLength = 3;
|
||||
}
|
||||
else if (fdOpcode == 0x73) // LD (IY+d), E
|
||||
{
|
||||
sbyte d = (sbyte)_memoryBus.Read((ushort)(currentPc + 2));
|
||||
string sign = d >= 0 ? "+" : "";
|
||||
mnemonic = $"LD (IY{sign}{d}), E";
|
||||
instructionLength = 3;
|
||||
}
|
||||
else if (fdOpcode == 0x74) // LD (IY+d), H
|
||||
{
|
||||
sbyte d = (sbyte)_memoryBus.Read((ushort)(currentPc + 2));
|
||||
|
||||
Reference in New Issue
Block a user