prog8/examples/test.p8

28 lines
457 B
Plaintext
Raw Normal View History

%import textio
%zeropage basicsafe
2021-10-30 15:15:11 +02:00
main {
sub start() {
2022-01-28 13:40:28 +01:00
uword @shared xx=$ea31
;xx &= $00ff
2022-01-28 13:40:28 +01:00
;xx = lsb(xx)
;txt.print_uwhex(xx, true)
;xx = $ea31
;xx &= $ff00
2022-01-28 13:40:28 +01:00
; xx = msb(xx)
; %asm {{
; nop
; nop
; }}
xx >>= 8
%asm {{
nop
}}
xx <<= 8
%asm {{
nop
}}
2022-01-28 13:40:28 +01:00
txt.print_uwhex(xx, true)
}
}