prog8/examples/test.p8

26 lines
434 B
Plaintext
Raw Normal View History

%import textio
%zeropage basicsafe
2021-10-30 13:15:11 +00:00
main {
sub start() {
2022-01-28 12:40:28 +00:00
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)
}
}