File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,12 +7,16 @@ class MiscLabels:
77 ASC = f"{ NAMESPACE } __ASC"
88 CHR = f"{ NAMESPACE } CHR"
99 PAUSE = f"{ NAMESPACE } __PAUSE"
10+ USR = f"{ NAMESPACE } USR"
11+ USR_STR = f"{ NAMESPACE } USR_STR"
1012 VAL = f"{ NAMESPACE } VAL"
1113
1214
1315REQUIRED_MODULES = {
1416 MiscLabels .ASC : 'asc.asm' ,
1517 MiscLabels .CHR : 'chr.asm' ,
1618 MiscLabels .PAUSE : 'pause.asm' ,
19+ MiscLabels .USR : 'usr.asm' ,
20+ MiscLabels .USR_STR : 'usr_str.asm' ,
1721 MiscLabels .VAL : 'val.asm'
1822}
Original file line number Diff line number Diff line change @@ -1355,15 +1355,13 @@ def visit_UBOUND(self, node):
13551355 def visit_USR_STR (self , node ):
13561356 # USR ADDR
13571357 self .ic_fparam (TYPE .string , node .children [0 ].t )
1358- self .ic_call ('USR_STR' , node .type_ .size )
1359- backend .REQUIRES .add ('usr_str.asm' )
1358+ self .runtime_call (RuntimeLabel .USR_STR , node .type_ .size )
13601359
13611360 def visit_USR (self , node ):
13621361 """ Machine code call from basic
13631362 """
13641363 self .ic_fparam (gl .PTR_TYPE , node .children [0 ].t )
1365- self .ic_call ('USR' , node .type_ .size )
1366- backend .REQUIRES .add ('usr.asm' )
1364+ self .runtime_call (RuntimeLabel .USR , node .type_ .size )
13671365
13681366
13691367class FunctionTranslator (Translator ):
You can’t perform that action at this time.
0 commit comments