Skip to content
Snippets Groups Projects
Commit 86f796c9 authored by Strozzi's avatar Strozzi
Browse files

idented for latex

parent 9390fc82
Branches
No related tags found
No related merge requests found
Pipeline #
# j=1; # li $t1, 1
# addi $t1, $zero, 1 # li $t4, 2
# la $a0, 0x10010000
# for(i=1; i <= n; i++)
# addi $t4, $zero, 2
# li $t0, 1 # li $t0, 1
# li $t5, 6 # li $t5, 6
# la $a0, xffff0000 # la $a0, xffff0000
for: beq $t4,$t5,fimfor for: beq $t4,$t5,fimfor
# j = j*i;
add $t1, $t1, $t4 add $t1, $t1, $t4
sw $t1, 0($a0) sw $t1, 0($a0)
add $t4, $t4, $t0 add $t4, $t4, $t0
j for j for
sw $t0, 0($a0) sw $t0, 0($a0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment