blob: 7f666d0600e3ab3e3c00ce8973056cf36d83abaa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
; Byte-swap example.
;
; Build/run from examples/:
; ../utils/mcpu-as -o byte-swap.o byte-swap.s
; ../utils/mcpu-ld --stack-size=512 -o byte-swap byte-swap.o
; ../utils/mcpu-run --int-reg=r64@0x00010 byte-swap
;
; Expected output: 42
;
.text
_start_life:
LDI r64@0x00000, 42
BSWAP r64@0x00008, r64@0x00000
BSWAP r64@0x00010, r64@0x00008
HALT
|