mirror of
https://github.com/irmen/prog8.git
synced 2024-09-10 09:54:32 +00:00
fix alignment of uninitialized arrays in aligned blocks (make them initialized with zeros so they don't end up in the BSS section)
21 lines
324 B
Lua
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
|
|
}
|
|
|