File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ class IOLabels:
3333 DRAW3 = f"{ NAMESPACE } DRAW3"
3434 PLOT = f"{ NAMESPACE } PLOT"
3535
36+ # Keyboard
37+ INKEY = f"{ NAMESPACE } INKEY"
38+
3639 # Print ("console")
3740 PRINTI16 = f"{ NAMESPACE } __PRINTI16"
3841 PRINTI32 = f"{ NAMESPACE } __PRINTI32"
@@ -81,6 +84,8 @@ class IOLabels:
8184 IOLabels .DRAW3 : 'draw3.asm' ,
8285 IOLabels .PLOT : 'plot.asm' ,
8386
87+ IOLabels .INKEY : 'inkey.asm' ,
88+
8489 IOLabels .LOAD_CODE : 'load.asm' ,
8590 IOLabels .SAVE_CODE : 'save.asm' ,
8691
Original file line number Diff line number Diff line change @@ -1224,8 +1224,7 @@ class BuiltinTranslator(TranslatorVisitor):
12241224
12251225 # region STRING Functions
12261226 def visit_INKEY (self , node ):
1227- self .ic_call ('INKEY' , Type .string .size )
1228- backend .REQUIRES .add ('inkey.asm' )
1227+ self .runtime_call (RuntimeLabel .INKEY , Type .string .size )
12291228
12301229 def visit_IN (self , node ):
12311230 self .ic_in (node .children [0 ].t )
You can’t perform that action at this time.
0 commit comments