Skip to content

Commit bea2800

Browse files
committed
Refactorize COS visit
1 parent 89f6d19 commit bea2800

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/zx48k/translator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,8 +1226,8 @@ def visit_SIN(self, node):
12261226
self.REQUIRES.add('sin.asm')
12271227

12281228
def visit_COS(self, node):
1229-
self.emit('fparam' + self.TSUFFIX(node.operand.type_), node.operand.t)
1230-
self.emit('call', 'COS', node.size)
1229+
self.ic_fparam(node.operand.type_, node.operand.t)
1230+
self.ic_call('COS', node.size)
12311231
self.REQUIRES.add('cos.asm')
12321232

12331233
def visit_TAN(self, node):

0 commit comments

Comments
 (0)