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

28 lines
457 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
}}
xx <<= 8
%asm {{
nop
}}
txt.print_uwhex(xx, true)
}
}