Can somewhat load from audio
This commit is contained in:
@@ -1352,6 +1352,10 @@ namespace Core.Cpu
|
||||
case 0x4D: // RETI Does not affect IFF1 or IFF2
|
||||
PC = Pop();
|
||||
return 14;
|
||||
case 0x51: // OUT (C), D
|
||||
// BC.Word goes to the address bus, D (DE.High) goes to the data bus
|
||||
_simpleIoBus.WritePort(BC.Word, DE.High);
|
||||
return 12; // 2 M-cycles, 12 T-States
|
||||
case 0x53: // LD (nn), DE
|
||||
ushort dest53 = FetchWord();
|
||||
WriteMemory(dest53, DE.Low);
|
||||
@@ -1372,6 +1376,10 @@ namespace Core.Cpu
|
||||
|
||||
AF.Low = flags58;
|
||||
return 12;
|
||||
case 0x59: // OUT (C), E
|
||||
// BC.Word goes to the address bus, E (DE.Low) goes to the data bus
|
||||
_simpleIoBus.WritePort(BC.Word, DE.Low);
|
||||
return 12; // 2 M-cycles, 12 T-States
|
||||
case 0x5B: // LD DE, (nn)
|
||||
ushort src5B = FetchWord();
|
||||
DE.Low = ReadMemory(src5B);
|
||||
|
||||
Reference in New Issue
Block a user