17 lines
252 B
Text
17 lines
252 B
Text
|
|
> :asm [(*)/ₒ 1 (⍳ 1 x 1)]
|
|||
|
|
|
|||
|
|
mov x6, x0
|
|||
|
|
mov x0, #0x1
|
|||
|
|
mov x2, #0x1
|
|||
|
|
eor x1, x1, x1
|
|||
|
|
cmp x1, x6
|
|||
|
|
b.GE apple_1
|
|||
|
|
apple_0:
|
|||
|
|
mul x0, x0, x2
|
|||
|
|
add x2, x2, #0x1
|
|||
|
|
add x1, x1, #0x1
|
|||
|
|
cmp x1, x6
|
|||
|
|
b.LT apple_0
|
|||
|
|
apple_1:
|
|||
|
|
ret
|