Skip to content

Commit

Permalink
[Python][#61] Support OUTI instruction.
Browse files Browse the repository at this point in the history
  • Loading branch information
kosarev committed Aug 5, 2024
1 parent e09d027 commit 7ddaa4c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/testsuite.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def runTest(self):
(b'\xdd\xe5', 'push ix'),
(b'\xfd\xe1', 'pop iy'),
(b'\xed\x50', 'in d, (c)'),
(b'\xed\xa3', 'outi'),
)

builder = z80.Z80InstrBuilder()
Expand Down
3 changes: 2 additions & 1 deletion z80/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
from ._instr import (ADD, ADC, AND, CP, OR, SBC, SUB, XOR, BIT, CALL, CCF, CPL,
DAA, DEC, DI, DJNZ, EI, EX, EXX, HALT, IM, INC, IN, JP,
JR, LD, LDDR, LDIR, NEG, NOP, RLC, RL, RR, RRC, SLA, SRA,
SRL, OUT, POP, PUSH, RES, RET, RLA, RLCA, RLD, RRA, RRCA,
SRL, OUT, OUTI, POP, PUSH, RES, RET,
RLA, RLCA, RLD, RRA, RRCA,
RST, SCF, SET, A, AF, AF2, CF, M, NC, NZ, PO, P, Z, DE,
BC, HL, IReg, IY, IX, SP, B, C, D, E, H, L, UnknownInstr,
JumpInstr, CallInstr, RetInstr, At, IndexReg, Add)
Expand Down
4 changes: 3 additions & 1 deletion z80/_disasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
from ._instr import (ADD, ADC, AND, CP, OR, SBC, SUB, XOR, BIT, CALL, CCF, CPL,
DAA, DEC, DI, DJNZ, EI, EX, EXX, HALT, IM, INC, IN, JP,
JR, LD, LDDR, LDIR, NEG, NOP, RLC, RL, RR, RRC, SLA, SRA,
SRL, OUT, POP, PUSH, RES, RET, RLA, RLCA, RLD, RRA, RRCA,
SRL, OUT, OUTI, POP, PUSH, RES, RET,
RLA, RLCA, RLD, RRA, RRCA,
RST, SCF, SET, A, AF, AF2, CF, M, NC, NZ, PO, P, Z, DE,
BC, HL, IReg, IY, IX, SP, B, C, D, E, H, L, UnknownInstr,
JumpInstr, CallInstr, RetInstr, At, IndexReg, Add)
Expand Down Expand Up @@ -183,6 +184,7 @@ class Z80InstrBuilder(object):
'sbc': SBC,
'scf': SCF,
'set': SET,
'Touti': OUTI,
}

__OPS = {
Expand Down
4 changes: 4 additions & 0 deletions z80/_instr.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,10 @@ class OUT(Instr):
pass


class OUTI(Instr):
pass


class POP(Instr):
pass

Expand Down

0 comments on commit 7ddaa4c

Please sign in to comment.