prog8/examples/test.p8
Irmen de Jong ae669af904 add sys.sizeof_byte, _word, _float constants
because Antlr doesn't allow the grammar to contain a sizeof(typename) rule to override the sizeof(identifier) rule
2024-10-07 19:17:37 +02:00

14 lines
237 B
Lua

%import textio
%zeropage basicsafe
main {
sub start() {
txt.print_ub(sys.sizeof_byte)
txt.spc()
txt.print_ub(sys.sizeof_word)
txt.spc()
txt.print_ub(sys.sizeof_float)
txt.nl()
}
}