prog8/examples/test.p8
Irmen de Jong b7a622c68e fix alignment of uninitialized arrays in aligned blocks (make them initialized with zeros so they don't end up in the BSS section)
fix alignment of uninitialized arrays in aligned blocks (make them initialized with zeros so they don't end up in the BSS section)
2023-10-04 00:12:36 +02:00

21 lines
324 B
Lua

%import textio
%zeropage basicsafe
main {
sub start() {
alignblock.flags[0] = 222
cx16.r0++
cx16.r1++
txt.print_uwhex(alignblock.flags, true)
txt.spc()
txt.print_ub(alignblock.flags[0])
txt.nl()
}
}
alignblock {
%option align_page
ubyte[10] flags
}