Skip to content

Commit 0a5ae81

Browse files
committed
fix: crash on PRINT (a = a)
1 parent da9757c commit 0a5ae81

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/arch/z80/visitor/translator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ def visit_PRINT(self, node):
794794

795795
self.ic_fparam(i.type_, i.t)
796796
label = {
797+
"bool": RuntimeLabel.PRINTU8,
797798
"i8": RuntimeLabel.PRINTI8,
798799
"u8": RuntimeLabel.PRINTU8,
799800
"i16": RuntimeLabel.PRINTI16,

src/arch/z80/visitor/translator_inst_visitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def ic_exchg(self) -> None:
106106
self.emit("exchg")
107107

108108
def ic_fparam(self, type_: TYPE | symbols.BASICTYPE, t) -> None:
109-
self.emit("fparam" + self.TSUFFIX(type_), t)
109+
self.emit(f"fparam{self._no_bool(type_)}", t)
110110

111111
def ic_fpload(self, type_: TYPE | symbols.BASICTYPE, t, offset) -> None:
112112
self.emit("fpload" + self.TSUFFIX(type_), t, offset)

0 commit comments

Comments
 (0)