Developpement/23SCR/SCR018-ARM/shift-experiment.s

20 lines
264 B
ArmAsm
Raw Permalink Normal View History

2024-12-09 11:53:11 +01:00
.equ SYS_EXIT, 93
.data
int: .quad 0x8000000000000000
.text
.globl _start
_start :
mov x0, #1
lsl x1, x0, #3
lsr x2, x0, #1
adr x5, int
ldr x3, [x5]
lsr x4, x3, #3
asr x5, x3, #3
mov x0, #0
mov w8, #SYS_EXIT
svc #0
.end