Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/arch/z80/backend/_16bit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1125,12 +1125,12 @@ def ret16(cls, ins: Quad) -> list[str]:
output.append("jp %s" % str(ins[2]))
return output


def _param16(ins: Quad) -> list[str]:
"""Pushes 16bit param into the stack"""
output = Bits16.get_oper(ins[1])
output.append("push hl")
return output
@classmethod
def param16(cls, ins: Quad) -> list[str]:
"""Pushes 16bit param into the stack"""
output = Bits16.get_oper(ins[1])
output.append("push hl")
return output


def _fparam16(ins: Quad) -> list[str]:
Expand Down
5 changes: 2 additions & 3 deletions src/arch/z80/backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
Bits16,
_fparam16,
_jnzero16,
_param16,
)

# 32 bit bitwise operations
Expand Down Expand Up @@ -335,8 +334,8 @@ def _set_quad_table(self):
ICInstruction.JGEZEROF: ICInfo(2, Float.jgezerof), # if X >= 0 jmp LABEL (float)
ICInstruction.PARAMU8: ICInfo(1, Bits8.param8), # Push 8 bit param onto the stack
ICInstruction.PARAMI8: ICInfo(1, Bits8.param8), # Push 8 bit param onto the stack
ICInstruction.PARAMU16: ICInfo(1, _param16), # Push 16 bit param onto the stack
ICInstruction.PARAMI16: ICInfo(1, _param16), # Push 16 bit param onto the stack
ICInstruction.PARAMU16: ICInfo(1, Bits16.param16), # Push 16 bit param onto the stack
ICInstruction.PARAMI16: ICInfo(1, Bits16.param16), # Push 16 bit param onto the stack
ICInstruction.PARAMU32: ICInfo(1, Bits32.param32), # Push 32 bit param onto the stack
ICInstruction.PARAMI32: ICInfo(1, Bits32.param32), # Push 32 bit param onto the stack
ICInstruction.PARAMF16: ICInfo(1, Fixed16.paramf16), # Push 32 bit param onto the stack
Expand Down