Skip to content

Instantly share code, notes, and snippets.

@mattearly
Created February 2, 2017 16:52
Show Gist options
  • Save mattearly/7cdf94756a9ff2356cac6814e286013e to your computer and use it in GitHub Desktop.
Save mattearly/7cdf94756a9ff2356cac6814e286013e to your computer and use it in GitHub Desktop.
.data
names: .space 16
ryan: .asciiz "Ryan\n"
tammi: .asciiz "Tammi\n"
josh: .asciiz "Josh\n"
robert: .asciiz "Robert\n"
.text
la $t0, names
la $t1, ryan
sw $t1, 0($t0)
la $t1, tammi
sw $t1, 4($t0)
la $t1, josh
sw $t1, 8($t0)
la $t1, robert
sw $t1, 12($t0)
li $v0, names
lw $a1, 0($t0)
syscall
@mattearly
Copy link
Author

Just practicing my understanding of assembly language here...

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