CS计算机代考程序代写 # Data stored in memory

# Data stored in memory
.data
value: # a value stored in memory
.word 5
result: # where result is stored
.word 0

# The program
main:
.text
lw $s0, value
move $t1, $s0
sll $s0, $s0, 2
add $s0, $s0, $t1
sw $s0, result

end:
li $v0, 10 #system call code for exit
syscall #exit the program