prog8/examples/test.p8
2024-12-01 20:50:33 +01:00

22 lines
467 B
Lua

%import textio
%option no_sysinit
%zeropage basicsafe
main {
sub start() {
txt.print_ubhex($123456>>16, true)
txt.spc()
txt.print_ubhex(msw($123456), true)
txt.spc()
txt.print_ubhex(bankof($123456), true)
txt.nl()
txt.print_uwhex($123456 & $ffff, true)
txt.spc()
txt.print_uwhex(lsw($123456), true)
txt.spc()
txt.print_uwhex($123456 & $ffff, true)
txt.nl()
}
}