-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix compiler crash on return xxx,yyy when symbol is not defined
- Loading branch information
Showing
4 changed files
with
37 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,32 @@ | ||
%import textio | ||
%import sprites | ||
%option no_sysinit | ||
%zeropage basicsafe | ||
|
||
|
||
main { | ||
sub start() { | ||
uword a | ||
ubyte b | ||
bool c | ||
a=9999 | ||
b=255 | ||
c=false | ||
a, b, c = multi() | ||
txt.print_uw(a) | ||
txt.spc() | ||
txt.print_uw(b) | ||
txt.spc() | ||
txt.print_bool(c) | ||
txt.nl() | ||
a=9999 | ||
b=255 | ||
c=false | ||
a, void, c = multi() | ||
txt.print_uw(a) | ||
txt.spc() | ||
txt.print_uw(b) | ||
txt.spc() | ||
txt.print_bool(c) | ||
txt.nl() | ||
a=9999 | ||
b=255 | ||
c=false | ||
void, b, c = multi() | ||
txt.print_uw(a) | ||
txt.spc() | ||
txt.print_uw(b) | ||
txt.spc() | ||
txt.print_bool(c) | ||
txt.nl() | ||
a=9999 | ||
b=255 | ||
c=false | ||
void multi() | ||
txt.print_uw(a) | ||
txt.spc() | ||
txt.print_uw(b) | ||
txt.spc() | ||
txt.print_bool(c) | ||
txt.nl() | ||
|
||
cx16.mouse_config2(1) | ||
|
||
sprites.init(1, 0, 0, sprites.SIZE_64, sprites.SIZE_64, sprites.COLORS_16, 0) | ||
|
||
sprites.pos(1, 100, 100) | ||
|
||
repeat { | ||
word x,y | ||
x,y = sprites.getxy(0) | ||
sprites.pos(1, x, y) | ||
} | ||
|
||
cx16.r0L = single() | ||
cx16.r0L, cx16.r1L = multi() | ||
} | ||
|
||
sub single() -> ubyte { | ||
return xx | ||
} | ||
|
||
sub multi() -> uword, ubyte, bool { | ||
return 12345, 66, true | ||
sub multi() -> ubyte, ubyte { | ||
return xx, yy | ||
} | ||
} |