BUT2/SCR/SCR1.2/TP17-ARM/w-vs-x-and-extension.s
2023-10-23 13:23:36 +02:00

23 lines
236 B
ArmAsm

.equ SYS_EXIT, 93
.data
int: .quad 0x11223344aabbccdd
int32: .word 0x887766ee
.text
.globl _start
_start:
adr x1,int
ldr x0,[x1]
adr x1,int32
ldr w0,[x1]
sxtw x1,w0
uxth x2,w0
uxtb x3,w0
mov x0, #0
mov w8,#SYS_EXIT
svc #0
.end