Skip to content

Commit

Permalink
Fix fibonacci example to actually halt at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksmckinley committed Mar 27, 2024
1 parent 0c6e4f2 commit 930ec9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/assembly_examples/fibonacci.asm
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ main: # PC starts here
lw $ra,36($sp)
lw $fp,32($sp)
addiu $sp,$sp,40
li $a0, 0 # Load 0 into $a0 to run the exit syscall
syscall # replaced jr $ra with syscall to prevent infinite execution
nop

# Here's the demo code in C:
#
Expand Down

0 comments on commit 930ec9d

Please sign in to comment.