Title | Lab1program - First part of lab one |
---|---|
Course | Computer Architecture & Organization |
Institution | FootHill College |
Pages | 1 |
File Size | 57.1 KB |
File Type | |
Total Downloads | 49 |
Total Views | 138 |
First part of lab one...
li $v0,4 #load service number for string print in $v0 la $a0, prompt_string # load address of string to be printed into $a0 syscall li $v0,5 # read an integer syscall # read value goes into v0 move $t1,$v0 # save integer in temp 1 (t1) li $v0,4 #load service number for string print in $v0 syscall li $v0,5 # read an integer syscall # read value goes into v0 move $t2,$v0 # save integer in temp 2 (t2) add $t3,$t1,$t2 #$t3...