Skip to content

Commit

Permalink
[Python][Disasm] Support SLL instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
kosarev committed Aug 5, 2024
1 parent 7ddaa4c commit 5185c16
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 @@ -11,6 +11,7 @@ def __str__(self):

def runTest(self):
TESTS = (
(b'\xcb\x30', 'sll b'),
(b'\xdd\xe5', 'push ix'),
(b'\xfd\xe1', 'pop iy'),
(b'\xed\x50', 'in d, (c)'),
Expand Down
3 changes: 2 additions & 1 deletion z80/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
from ._error import Error
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,
JR, LD, LDDR, LDIR, NEG, NOP,
RLC, RL, RR, RRC, SLA, SLL, SRA,
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,
Expand Down
4 changes: 3 additions & 1 deletion z80/_disasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
from ._error import Error
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,
JR, LD, LDDR, LDIR, NEG, NOP,
RLC, RL, RR, RRC, SLA, SLL, SRA,
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,
Expand Down Expand Up @@ -168,6 +169,7 @@ class Z80InstrBuilder(object):
'Orr': RR,
'Orrc': RRC,
'Osla': SLA,
'Osll': SLL,
'Osra': SRA,
'Osrl': SRL,
'out': OUT,
Expand Down
4 changes: 4 additions & 0 deletions z80/_instr.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,10 @@ class SLA(Instr):
pass


class SLL(Instr):
pass


class SRA(Instr):
pass

Expand Down

0 comments on commit 5185c16

Please sign in to comment.