Skip to content

Commit a6ca143

Browse files
committed
Refactorize USR visit
1 parent 79b8f51 commit a6ca143

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/zx48k/translator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,8 +1298,8 @@ def visit_USR_STR(self, node):
12981298
def visit_USR(self, node):
12991299
""" Machine code call from basic
13001300
"""
1301-
self.emit('fparam' + self.TSUFFIX(gl.PTR_TYPE), node.children[0].t)
1302-
self.emit('call', 'USR', node.type_.size)
1301+
self.ic_fparam(gl.PTR_TYPE, node.children[0].t)
1302+
self.ic_call('USR', node.type_.size)
13031303
backend.REQUIRES.add('usr.asm')
13041304

13051305

0 commit comments

Comments
 (0)