18 lines
306 B
ArmAsm
18 lines
306 B
ArmAsm
|
.globl add
|
||
|
.text
|
||
|
.align 2
|
||
|
.type add, @function
|
||
|
add:
|
||
|
addi sp,sp,-32
|
||
|
sw ra,28(sp)
|
||
|
sw s0,24(sp)
|
||
|
addi s0,sp,32
|
||
|
sw a0,-20(s0)
|
||
|
lw a5,-20(s0)
|
||
|
slli a5,a5,1
|
||
|
mv a0,a5
|
||
|
lw ra,28(sp)
|
||
|
lw s0,24(sp)
|
||
|
addi sp,sp,32
|
||
|
jr ra
|