mirror of
https://github.com/irmen/prog8.git
synced 2024-09-04 13:29:54 +00:00
26 lines
434 B
Lua
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)
|
|
}
|
|
}
|