Skip to content

Commit

Permalink
z80: add newly discovered behavior of inir/indr/otir/otdr
Browse files Browse the repository at this point in the history
  • Loading branch information
rasky committed Dec 20, 2023
1 parent 18c84a8 commit c327ab2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ares/component/processor/z80/instructions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ auto Z80::instructionINDR() -> void { Q = 1;
if(!B) return;
wait(5);
PC -= 2;
WZ = PC + 1;
XF = PC.bit(11);
YF = PC.bit(13);

Expand Down Expand Up @@ -327,6 +328,7 @@ auto Z80::instructionINIR() -> void { Q = 1;
if(!B) return;
wait(5);
PC -= 2;
WZ = PC + 1;
XF = PC.bit(11);
YF = PC.bit(13);

Expand Down Expand Up @@ -516,6 +518,7 @@ auto Z80::instructionOTDR() -> void { Q = 1;
if(!B) return;
wait(5);
PC -= 2;
WZ = PC + 1;
XF = PC.bit(11);
YF = PC.bit(13);

Expand All @@ -537,6 +540,7 @@ auto Z80::instructionOTIR() -> void { Q = 1;
if(!B) return;
wait(5);
PC -= 2;
WZ = PC + 1;
XF = PC.bit(11);
YF = PC.bit(13);

Expand Down

0 comments on commit c327ab2

Please sign in to comment.