2021-10-30 21:15:18 +00:00
|
|
|
%import floats
|
2021-10-30 13:15:11 +00:00
|
|
|
%import textio
|
|
|
|
%zeropage basicsafe
|
2021-10-27 21:48:02 +00:00
|
|
|
|
2021-10-30 13:15:11 +00:00
|
|
|
main {
|
2021-10-30 21:15:18 +00:00
|
|
|
|
2021-10-14 22:28:23 +00:00
|
|
|
sub start() {
|
2021-10-30 21:15:18 +00:00
|
|
|
ubyte xx
|
|
|
|
float ff
|
2021-10-30 13:15:11 +00:00
|
|
|
|
2021-10-30 21:15:18 +00:00
|
|
|
ff=0
|
|
|
|
|
|
|
|
if ff==0 {
|
|
|
|
txt.print("ff=0\n")
|
|
|
|
}
|
|
|
|
if ff!=0 {
|
|
|
|
txt.print("ff!=0 (error!)\n")
|
|
|
|
}
|
|
|
|
ff=-0.22
|
|
|
|
if ff==0 {
|
|
|
|
txt.print("ff=0 (error!)\n")
|
|
|
|
}
|
|
|
|
if ff!=0 {
|
|
|
|
txt.print("ff!=0\n")
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if xx { ; doesn't use stack...
|
|
|
|
xx++
|
|
|
|
}
|
|
|
|
|
|
|
|
xx = xx+1 ; doesn't use stack...
|
|
|
|
|
|
|
|
if 8<xx {
|
|
|
|
}
|
|
|
|
|
|
|
|
if xx+1 { ; TODO why does this use stack?
|
|
|
|
xx++
|
|
|
|
}
|
|
|
|
|
|
|
|
xx = xx & %0001 ; doesn't use stack...
|
|
|
|
|
|
|
|
if xx & %0001 { ; TODO why does this use stack?
|
|
|
|
xx--
|
|
|
|
}
|
|
|
|
|
|
|
|
do {
|
|
|
|
xx++
|
|
|
|
} until xx+1
|
2021-10-30 13:15:11 +00:00
|
|
|
|
2021-10-30 21:15:18 +00:00
|
|
|
while xx+1 {
|
|
|
|
xx++
|
|
|
|
}
|
2021-10-27 21:48:02 +00:00
|
|
|
}
|
2021-05-12 22:35:22 +00:00
|
|
|
}
|