prog8/examples/test.p8

49 lines
679 B
Plaintext
Raw Normal View History

%import syslib
2020-09-21 16:42:28 +00:00
; %import graphics
%import textio
2020-09-21 21:39:25 +00:00
%zeropage basicsafe
2020-08-27 17:47:50 +00:00
main {
2020-09-16 21:04:18 +00:00
sub start() {
2020-09-22 19:50:56 +00:00
word x= 1
if x==10 {
x=99
} else {
x=100
}
if x==10 {
;nothing
} else {
x=100
}
if x==10 {
x=99
} else {
; nothing
}
while 1==x {
txt.print_w(x)
txt.chrout('\n')
x++
}
txt.chrout('\n')
x=0
do {
x++
txt.print_w(x)
txt.chrout('\n')
} until x==10
2020-09-22 19:50:56 +00:00
; @($c000) *= 99 ; TODO implement
2020-09-16 21:04:18 +00:00
}
2020-08-27 17:47:50 +00:00
}