.equ SYS_EXIT, 93 .data int : .word 12 .text .globl _start _start : adr x1, int ldr w0,[x1] //n est dans w0 mov w1, #0 //res est dans w1 mov w2, #1 //i est dans w2 bcl: cmp w2, w0 b.gt fin add w1,w1,w2 add w2,w2,#1 b bcl fin: mov x0,x1 mov w8, #SYS_EXIT svc #0 .end