-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't optimize empty where choice away! It would call the else clause…
… incorrectly.
- Loading branch information
Showing
4 changed files
with
21 additions
and
33 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,27 +1,16 @@ | ||
%import gfx2 | ||
%import textio | ||
%zeropage basicsafe | ||
|
||
main { | ||
sub start() { | ||
gfx2.screen_mode(6) ; 1 and 5 are lo-res and hi-res monochrome | ||
ubyte var = 0 | ||
|
||
uword xx | ||
gfx2.rect(10, 10, 180, 140, 3) | ||
gfx2.rect(12, 12, 180, 140, 3) | ||
|
||
cbm.SETTIM(0,0,0) | ||
|
||
for xx in 5 to 100 { | ||
gfx2.text(xx, xx, 1, sc:"hello world! should be pixel-aligned.") | ||
gfx2.text(xx, xx, 2, sc:"hello world! should be pixel-aligned.") | ||
gfx2.text(xx, xx, 3, sc:"hello world! should be pixel-aligned.") | ||
gfx2.text(xx, xx, 0, sc:"hello world! should be pixel-aligned.") | ||
when var { | ||
1 -> txt.print("one") | ||
2 -> txt.print("two") | ||
0 -> { | ||
} | ||
else -> txt.print("other") | ||
} | ||
|
||
gfx2.screen_mode(0) | ||
txt.print_uw(cbm.RDTIM16()) | ||
txt.print(" jiffies") | ||
|
||
repeat { } | ||
} | ||
} |