prog8/examples/test.p8

26 lines
474 B
Plaintext
Raw Normal View History

%import textio
2024-09-28 01:00:28 +02:00
%zeropage basicsafe
%option no_sysinit
main {
2024-08-24 14:34:23 +02:00
sub start() {
uword uw
for uw in 50 downto 10 {
cx16.r0++
}
word starw
for starw in 50 downto 10 { ; TODO fix compiler error + add unit test for this
cx16.r0++
}
ubyte[] stuff1=[1,2,3]
ubyte [] stuff2=[1,2,3]
ubyte[ ] stuff3=[1,2,3]
stuff1[1]++
stuff2[1]++
stuff3[1]++
2024-07-21 13:35:28 +02:00
}
}