URL
https://opencores.org/ocsvn/mips32/mips32/trunk
Subversion Repositories mips32
[/] [mips32/] [trunk/] [Classic-MIPS/] [TestBenchs/] [function/] [code2.smd] - Rev 2
Compare with Previous | Blame | View Log
main:
#call the first function
addi $a0, $zero, 89
addi $a1, $zero, -13
addi $a2, $zero, 0
jal ADD
lw $t0, 2048($zero)
nop
nop
nop
ADD:
add $t0, $a0, $a1
sw $a0, 0($a2)
sw $a1, 4($a2)
sw $t0, 8($a2)
sw $ra, 12($a2)
jr $ra