prog8/examples/test.p8

39 lines
590 B
Plaintext
Raw Normal View History

%zeropage basicsafe
2019-01-26 21:46:01 +00:00
2019-03-25 22:31:02 +00:00
; @todo fix this loop labeling problem (issue #11 on github): it generates invalid asm due to improper label names
~ main {
2019-02-21 00:31:33 +00:00
sub start() {
byte var1
byte var1
sub subsub() {
byte var1
byte var1
}
sub subsub() {
byte var1
byte var2
byte var3
byte var2
}
2019-03-21 21:36:46 +00:00
if A>10 {
A=44
while true {
;derp
}
2019-03-21 21:36:46 +00:00
} else {
2019-03-21 21:36:46 +00:00
gameover:
goto gameover
}
}
}