@@ -831,29 +831,25 @@ def visit_VERIFY(self, node):
831831 def visit_BORDER (self , node ):
832832 yield node .children [0 ]
833833 self .ic_fparam (TYPE .ubyte , node .children [0 ].t )
834- self .ic_call ('BORDER' , 0 )
835- backend .REQUIRES .add ('border.asm' )
834+ self .runtime_call (RuntimeLabel .BORDER , 0 )
836835
837836 def visit_BEEP (self , node ):
838837 if node .children [0 ].token == node .children [1 ].token == 'NUMBER' : # BEEP <const>, <const>
839838 DE , HL = src .arch .zx48k .beep .getDEHL (float (node .children [0 ].t ), float (node .children [1 ].t ))
840839 self .ic_param (TYPE .uinteger , HL )
841840 self .ic_fparam (TYPE .uinteger , DE )
842- self .ic_call ('__BEEPER' , 0 ) # Procedure call. Discard return
843- backend .REQUIRES .add ('beeper.asm' )
841+ self .runtime_call (RuntimeLabel .BEEPER , 0 ) # Procedure call. Discard return
844842 else :
845843 yield node .children [1 ]
846844 self .ic_param (TYPE .float_ , node .children [1 ].t )
847845 yield node .children [0 ]
848846 self .ic_fparam (TYPE .float_ , node .children [0 ].t )
849- self .ic_call ('BEEP' , 0 )
850- backend .REQUIRES .add ('beep.asm' )
847+ self .runtime_call (RuntimeLabel .BEEP , 0 )
851848
852849 def visit_PAUSE (self , node ):
853850 yield node .children [0 ]
854851 self .ic_fparam (node .children [0 ].type_ , node .children [0 ].t )
855- self .ic_call ('__PAUSE' , 0 )
856- backend .REQUIRES .add ('pause.asm' )
852+ self .runtime_call (RuntimeLabel .PAUSE , 0 )
857853
858854 # endregion
859855
0 commit comments