File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -1117,13 +1117,13 @@ def jgezeroi16(cls, ins: Quad) -> list[str]:
1117
1117
output .append ("jp nc, %s" % str (ins [2 ]))
1118
1118
return output
1119
1119
1120
-
1121
- def _ret16 ( ins : Quad ) -> list [str ]:
1122
- """Returns from a procedure / function a 16bits value"""
1123
- output = Bits16 .get_oper (ins [1 ])
1124
- output .append ("#pragma opt require hl" )
1125
- output .append ("jp %s" % str (ins [2 ]))
1126
- return output
1120
+ @ classmethod
1121
+ def ret16 ( cls , ins : Quad ) -> list [str ]:
1122
+ """Returns from a procedure / function a 16bits value"""
1123
+ output = Bits16 .get_oper (ins [1 ])
1124
+ output .append ("#pragma opt require hl" )
1125
+ output .append ("jp %s" % str (ins [2 ]))
1126
+ return output
1127
1127
1128
1128
1129
1129
def _param16 (ins : Quad ) -> list [str ]:
Original file line number Diff line number Diff line change 31
31
_fparam16 ,
32
32
_jnzero16 ,
33
33
_param16 ,
34
- _ret16 ,
35
34
)
36
35
37
36
# 32 bit bitwise operations
@@ -367,10 +366,10 @@ def _set_quad_table(self):
367
366
2 , Bits8 .ret8
368
367
), # Returns from a function call (enters the 'leave' sequence'), returning 8 bit value
369
368
ICInstruction .RETI16 : ICInfo (
370
- 2 , _ret16
369
+ 2 , Bits16 . ret16
371
370
), # Returns from a func call (enters the 'leave' sequence'), returning 16 bit value
372
371
ICInstruction .RETU16 : ICInfo (
373
- 2 , _ret16
372
+ 2 , Bits16 . ret16
374
373
), # Returns from a func call (enters the 'leave' sequence'), returning 16 bit value
375
374
ICInstruction .RETI32 : ICInfo (
376
375
2 , Bits32 .ret32
You can’t perform that action at this time.
0 commit comments