mirror of
https://github.com/irmen/prog8.git
synced 2025-03-12 14:30:35 +00:00
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().
23 lines
389 B
Lua
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()
|
|
}
|
|
}
|
|
}
|