Skip to content

Instantly share code, notes, and snippets.

@macalinao
Created February 26, 2015 10:23
Show Gist options
  • Save macalinao/2dd853f43114635357cc to your computer and use it in GitHub Desktop.
Save macalinao/2dd853f43114635357cc to your computer and use it in GitHub Desktop.
li $t0, 0 # Initialize
loop: # Start loop
la $a0, ($t0)
li $v0, 1
syscall
addi $t0, $t0, 1 # Increment
blt $t0, 10, loop # Check condition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment