mirror of
https://github.com/irmen/prog8.git
synced 2024-11-29 17:50:35 +00:00
28 lines
457 B
Lua
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)
|
|
}
|
|
}
|