prog8/examples/test.p8
2022-01-28 13:40:28 +01:00

26 lines
434 B
Lua

%import textio
%zeropage basicsafe
main {
sub start() {
uword @shared xx=$ea31
xx &= $00ff
;xx = lsb(xx)
txt.print_uwhex(xx, true)
xx = $ea31
xx &= $ff00
; xx = msb(xx)
; %asm {{
; nop
; nop
; }}
; xx >>= 8
; %asm {{
; nop
; nop
; }}
; xx <<= 8
txt.print_uwhex(xx, true)
}
}