Skip to content

Commit e94bfcd

Browse files
author
Foerster-H
committed
Comment
1 parent fbf9600 commit e94bfcd

File tree

1 file changed

+3
-2
lines changed
  • src/main/java/com/sixtyfour/elements/commands

1 file changed

+3
-2
lines changed

src/main/java/com/sixtyfour/elements/commands/Print.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,9 @@ public List<CodeContainer> evalToCode(CompilerConfig config, Machine machine, St
252252
if (add.equals("\t")) {
253253
if (type.equals(Type.INTEGER) || type.equals(Type.REAL)) {
254254
if (isFileWrite(appendix)) {
255-
// file...actually, CRSRRIGHT would handle this case as well, but anyway...
256-
expr.add("MOV A,# {STRING}");
255+
// file...actually, CRSRRIGHT would handle this case as well, but I'm not convinced that
256+
// the runtime initializes the required value in $13 in all cases (albeit it should...), so
257+
// we'll keep it this way for now...
257258
expr.add("JSR STROUT" + appendix);
258259
} else {
259260
// screen

0 commit comments

Comments
 (0)