Skip to content

Commit 5185c16

Browse files
committed
[Python][Disasm] Support SLL instructions.
1 parent 7ddaa4c commit 5185c16

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

tests/testsuite.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ def __str__(self):
1111

1212
def runTest(self):
1313
TESTS = (
14+
(b'\xcb\x30', 'sll b'),
1415
(b'\xdd\xe5', 'push ix'),
1516
(b'\xfd\xe1', 'pop iy'),
1617
(b'\xed\x50', 'in d, (c)'),

z80/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
from ._error import Error
1212
from ._instr import (ADD, ADC, AND, CP, OR, SBC, SUB, XOR, BIT, CALL, CCF, CPL,
1313
DAA, DEC, DI, DJNZ, EI, EX, EXX, HALT, IM, INC, IN, JP,
14-
JR, LD, LDDR, LDIR, NEG, NOP, RLC, RL, RR, RRC, SLA, SRA,
14+
JR, LD, LDDR, LDIR, NEG, NOP,
15+
RLC, RL, RR, RRC, SLA, SLL, SRA,
1516
SRL, OUT, OUTI, POP, PUSH, RES, RET,
1617
RLA, RLCA, RLD, RRA, RRCA,
1718
RST, SCF, SET, A, AF, AF2, CF, M, NC, NZ, PO, P, Z, DE,

z80/_disasm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
from ._error import Error
1616
from ._instr import (ADD, ADC, AND, CP, OR, SBC, SUB, XOR, BIT, CALL, CCF, CPL,
1717
DAA, DEC, DI, DJNZ, EI, EX, EXX, HALT, IM, INC, IN, JP,
18-
JR, LD, LDDR, LDIR, NEG, NOP, RLC, RL, RR, RRC, SLA, SRA,
18+
JR, LD, LDDR, LDIR, NEG, NOP,
19+
RLC, RL, RR, RRC, SLA, SLL, SRA,
1920
SRL, OUT, OUTI, POP, PUSH, RES, RET,
2021
RLA, RLCA, RLD, RRA, RRCA,
2122
RST, SCF, SET, A, AF, AF2, CF, M, NC, NZ, PO, P, Z, DE,
@@ -168,6 +169,7 @@ class Z80InstrBuilder(object):
168169
'Orr': RR,
169170
'Orrc': RRC,
170171
'Osla': SLA,
172+
'Osll': SLL,
171173
'Osra': SRA,
172174
'Osrl': SRL,
173175
'out': OUT,

z80/_instr.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,10 @@ class SLA(Instr):
404404
pass
405405

406406

407+
class SLL(Instr):
408+
pass
409+
410+
407411
class SRA(Instr):
408412
pass
409413

0 commit comments

Comments
 (0)