File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1132,14 +1132,14 @@ def param16(cls, ins: Quad) -> list[str]:
11321132 output .append ("push hl" )
11331133 return output
11341134
1135-
1136- def _fparam16 ( ins : Quad ) -> list [str ]:
1137- """Passes a word as a __FASTCALL__ parameter.
1138- This is done by popping out of the stack for a
1139- value, or by loading it from memory (indirect)
1140- or directly (immediate)
1141- """
1142- return Bits16 .get_oper (ins [1 ])
1135+ @ classmethod
1136+ def fparam16 ( cls , ins : Quad ) -> list [str ]:
1137+ """Passes a word as a __FASTCALL__ parameter.
1138+ This is done by popping out of the stack for a
1139+ value, or by loading it from memory (indirect)
1140+ or directly (immediate)
1141+ """
1142+ return Bits16 .get_oper (ins [1 ])
11431143
11441144
11451145def _jnzero16 (ins : Quad ) -> list [str ]:
Original file line number Diff line number Diff line change 2828# 16 bit arithmetic functions
2929from ._16bit import (
3030 Bits16 ,
31- _fparam16 ,
3231 _jnzero16 ,
3332)
3433
@@ -345,8 +344,8 @@ def _set_quad_table(self):
345344 ), # Push float param - 6 BYTES (always even) onto the stack
346345 ICInstruction .FPARAMU8 : ICInfo (1 , Bits8 .fparam8 ), # __FASTCALL__ parameter
347346 ICInstruction .FPARAMI8 : ICInfo (1 , Bits8 .fparam8 ), # __FASTCALL__ parameter
348- ICInstruction .FPARAMU16 : ICInfo (1 , _fparam16 ), # __FASTCALL__ parameter
349- ICInstruction .FPARAMI16 : ICInfo (1 , _fparam16 ), # __FASTCALL__ parameter
347+ ICInstruction .FPARAMU16 : ICInfo (1 , Bits16 . fparam16 ), # __FASTCALL__ parameter
348+ ICInstruction .FPARAMI16 : ICInfo (1 , Bits16 . fparam16 ), # __FASTCALL__ parameter
350349 ICInstruction .FPARAMU32 : ICInfo (1 , Bits32 .fparam32 ), # __FASTCALL__ parameter
351350 ICInstruction .FPARAMI32 : ICInfo (1 , Bits32 .fparam32 ), # __FASTCALL__ parameter
352351 ICInstruction .FPARAMF16 : ICInfo (1 , Fixed16 .fparamf16 ), # __FASTCALL__ parameter
You can’t perform that action at this time.
0 commit comments