Skip to content

Instantly share code, notes, and snippets.

@BytewaveMLP
Created January 30, 2019 02:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BytewaveMLP/3404cb50ed8614410b93179a13eda0d9 to your computer and use it in GitHub Desktop.
Save BytewaveMLP/3404cb50ed8614410b93179a13eda0d9 to your computer and use it in GitHub Desktop.
.data
notes: .byte 61 61 65 61 66 66 70 68 255 68 68 68 65 68 63 65 61 61 61 65 61 66 66 70 68 255 68 68 68 65 68 68 255 68 68 68 65 68 60 0
.align 2
times: .word 388 259 259 259 388 259 259 259 259 259 130 130 259 259 259 259 259 388 259 259 259 388 259 259 259 259 130 130 259 259 259 259 259 130 130 259 259 259 518 0
.text
main:
li $v0, 33
la $t0, notes
la $t1, times
lbu $a0, ($t0)
lw $a1, ($t1)
li $a2, 1
li $a3, 50
loop:
beq $a0, 255, rest
syscall
resume:
addi $t0, $t0, 1
addi $t1, $t1, 4
lbu $a0, ($t0)
lw $a1, ($t1)
bnez $a0, loop
j exit
rest:
li $v0, 32
syscall
li $v0, 33
j resume
exit:
li $v0, 10
syscall
@Reboot01
Copy link

Gud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment