File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -1132,14 +1132,14 @@ def param16(cls, ins: Quad) -> list[str]:
1132
1132
output .append ("push hl" )
1133
1133
return output
1134
1134
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 ])
1143
1143
1144
1144
1145
1145
def _jnzero16 (ins : Quad ) -> list [str ]:
Original file line number Diff line number Diff line change 28
28
# 16 bit arithmetic functions
29
29
from ._16bit import (
30
30
Bits16 ,
31
- _fparam16 ,
32
31
_jnzero16 ,
33
32
)
34
33
@@ -345,8 +344,8 @@ def _set_quad_table(self):
345
344
), # Push float param - 6 BYTES (always even) onto the stack
346
345
ICInstruction .FPARAMU8 : ICInfo (1 , Bits8 .fparam8 ), # __FASTCALL__ parameter
347
346
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
350
349
ICInstruction .FPARAMU32 : ICInfo (1 , Bits32 .fparam32 ), # __FASTCALL__ parameter
351
350
ICInstruction .FPARAMI32 : ICInfo (1 , Bits32 .fparam32 ), # __FASTCALL__ parameter
352
351
ICInstruction .FPARAMF16 : ICInfo (1 , Fixed16 .fparamf16 ), # __FASTCALL__ parameter
You can’t perform that action at this time.
0 commit comments