mirror of
https://github.com/irmen/prog8.git
synced 2024-12-22 18:30:01 +00:00
22 lines
467 B
Lua
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()
|
|
}
|
|
}
|