prog8/examples/test.p8

37 lines
504 B
Plaintext
Raw Normal View History

%import textio
%zeropage basicsafe
2021-03-15 21:24:09 +00:00
2021-04-08 00:13:02 +00:00
main {
sub start() {
ubyte yy
ubyte joy=1
ubyte zz
joy >>= 1
if_cs
yy++
joy >>= 1
if_cs
yy++
; TODO the shifting checks above result in way smaller code than this:
if joy+44 > 33 {
yy++
}
yy=joy+44>33
if yy {
yy++
}
if joy & %00000001
yy++
if joy & %00000010
yy++
2021-04-01 20:10:04 +00:00
}
}