2021-12-21 19:08:33 +01:00
|
|
|
%import textio
|
2022-01-23 13:42:52 +01:00
|
|
|
%zeropage basicsafe
|
2021-12-15 23:43:14 +01:00
|
|
|
|
2021-10-30 15:15:11 +02:00
|
|
|
main {
|
2022-01-18 21:21:49 +01:00
|
|
|
sub start() {
|
2022-01-28 13:40:28 +01:00
|
|
|
uword @shared xx=$ea31
|
2022-01-28 13:54:06 +01:00
|
|
|
;xx &= $00ff
|
2022-01-28 13:40:28 +01:00
|
|
|
;xx = lsb(xx)
|
2022-01-28 13:54:06 +01:00
|
|
|
;txt.print_uwhex(xx, true)
|
|
|
|
;xx = $ea31
|
|
|
|
;xx &= $ff00
|
2022-01-28 13:40:28 +01:00
|
|
|
; xx = msb(xx)
|
|
|
|
; %asm {{
|
|
|
|
; nop
|
|
|
|
; nop
|
|
|
|
; }}
|
2022-01-28 13:54:06 +01:00
|
|
|
xx >>= 8
|
|
|
|
%asm {{
|
|
|
|
nop
|
|
|
|
}}
|
|
|
|
xx <<= 8
|
|
|
|
%asm {{
|
|
|
|
nop
|
|
|
|
}}
|
2022-01-28 13:40:28 +01:00
|
|
|
txt.print_uwhex(xx, true)
|
2022-01-27 18:05:25 +01:00
|
|
|
}
|
2022-01-23 02:42:26 +01:00
|
|
|
}
|