prog8/examples/test.p8
Irmen de Jong bc3f2db3de Fix call graph to no longer mark subroutines unused, that still get their variables referenced somewhere.
Revert palette.default_colors_16[] back to palette.set_default16.colors.
2024-01-11 22:12:01 +01:00

20 lines
299 B
Lua

%import textio
%import palette
%zeropage basicsafe
%option no_sysinit
main {
sub start() {
cx16.r0L = main.dummy.variable
cx16.r0L = main.dummy.array[1]
cx16.r0++
}
sub dummy() {
ubyte variable
ubyte[] array = [1,2,3]
cx16.r0++
}
}