You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
483 B
38 lines
483 B
.align 2
|
|
.section .data
|
|
.section .text
|
|
.global __aeabi_memclr4
|
|
__aeabi_memclr4:
|
|
.L1:
|
|
MV t5, a0
|
|
MV t6, a1
|
|
ADD t6, a0, t6
|
|
LI a0, 0
|
|
.L2:
|
|
SW zero, (t5)
|
|
ADDI t5, t5, 4
|
|
BLT t5, t6, .L2
|
|
RET
|
|
.global main
|
|
main:
|
|
.L3:
|
|
ADDI sp, sp, -48
|
|
SD fp, 16(sp)
|
|
ADDI fp, sp, 48
|
|
SD ra, -40(fp)
|
|
SD s2, -48(fp)
|
|
.L4:
|
|
LI t0, 3
|
|
SW t0, -24(fp)
|
|
J .L5
|
|
.L5:
|
|
LW s2, -24(fp)
|
|
SW s2, -16(fp)
|
|
LW a0, -16(fp)
|
|
LD s2, -48(fp)
|
|
LD ra, -40(fp)
|
|
LD fp, -32(fp)
|
|
ADDI sp, sp, 48
|
|
RET
|
|
|