prog8/examples/test.p8

30 lines
558 B
Plaintext
Raw Normal View History

%import textio
%zeropage basicsafe
2022-03-13 11:52:12 +00:00
main {
2022-08-07 11:45:03 +00:00
sub start() {
uword slab1 = memory("slab 1", 2000, 0)
uword slab2 = memory("slab 1", 2000, 0)
uword slab3 = memory("slab other", 2000, 64)
txt.print_uwhex(slab1, true)
txt.print_uwhex(slab2, true)
txt.print_uwhex(slab3, true)
ubyte rasterCount = 231
if rasterCount >= 230
txt.print("y1")
if rasterCount ^ $80 >= 230
txt.print("y2")
if (rasterCount ^ $80) >= 230
txt.print("y3")
}
}