2024-11-30 19:46:31 +00:00
|
|
|
%import textio
|
|
|
|
%option no_sysinit
|
|
|
|
%zeropage basicsafe
|
|
|
|
|
2024-11-13 23:54:07 +00:00
|
|
|
main {
|
2024-11-24 06:28:33 +00:00
|
|
|
sub start() {
|
2024-12-01 13:28:41 +00:00
|
|
|
ubyte @shared ub = -1
|
|
|
|
uword @shared uw = -5555
|
|
|
|
|
|
|
|
txt.print_ubhex(bankof($123456), true)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_ubhex(msw($123456), true)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_ubhex(^$123456, true)
|
2024-11-30 19:46:31 +00:00
|
|
|
txt.nl()
|
2024-11-24 03:57:27 +00:00
|
|
|
|
2024-12-01 13:28:41 +00:00
|
|
|
txt.print_uwhex(<<$1234567, true)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uwhex(lsw($1234567), true)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uwhex($1234567 & $ffff, true)
|
|
|
|
txt.nl()
|
2024-11-29 19:57:40 +00:00
|
|
|
|
2024-12-01 13:28:41 +00:00
|
|
|
txt.print_uwhex(<<$123456, true)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uwhex(lsw($123456), true)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uwhex($123456 & $ffff, true)
|
|
|
|
txt.nl()
|
2024-11-29 23:06:02 +00:00
|
|
|
}
|
2024-11-05 22:56:58 +00:00
|
|
|
}
|