Created
February 2, 2017 16:52
-
-
Save mattearly/7cdf94756a9ff2356cac6814e286013e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just practicing my understanding of assembly language here...