prog8/examples/test.p8
Irmen de Jong b01555d75e cx16.set_screen_mode() no longer returns anything.
tweak when codegen slightly.
allow trailing comma in array literals.

set_screen_mode failure status is really uncommon and still returned by the real kernal routine screen_mode().
2024-12-19 20:56:07 +01:00

23 lines
389 B
Lua

%import textio
%zeropage basicsafe
%option no_sysinit
main {
sub start() {
ubyte[] array = [
11,
22,
33,
44,
]
for cx16.r0L in [1,2,3,4,] {
txt.print_ub(cx16.r0L)
txt.nl()
}
for cx16.r0L in array {
txt.print_ub(cx16.r0L)
txt.nl()
}
}
}