File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1117,13 +1117,13 @@ def jgezeroi16(cls, ins: Quad) -> list[str]:
11171117 output .append ("jp nc, %s" % str (ins [2 ]))
11181118 return output
11191119
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
11271127
11281128
11291129def _param16 (ins : Quad ) -> list [str ]:
Original file line number Diff line number Diff line change 3131 _fparam16 ,
3232 _jnzero16 ,
3333 _param16 ,
34- _ret16 ,
3534)
3635
3736# 32 bit bitwise operations
@@ -367,10 +366,10 @@ def _set_quad_table(self):
367366 2 , Bits8 .ret8
368367 ), # Returns from a function call (enters the 'leave' sequence'), returning 8 bit value
369368 ICInstruction .RETI16 : ICInfo (
370- 2 , _ret16
369+ 2 , Bits16 . ret16
371370 ), # Returns from a func call (enters the 'leave' sequence'), returning 16 bit value
372371 ICInstruction .RETU16 : ICInfo (
373- 2 , _ret16
372+ 2 , Bits16 . ret16
374373 ), # Returns from a func call (enters the 'leave' sequence'), returning 16 bit value
375374 ICInstruction .RETI32 : ICInfo (
376375 2 , Bits32 .ret32
You can’t perform that action at this time.
0 commit comments