📅  最后修改于: 2022-03-11 14:57:43.004000             🧑  作者: Mango
.data
globalVariable: .word 10
.text
#access
lw $a0, globalVariable
#modify
la $a0, globalVariable #get address
li $a1, 11 #new value
sw $a1 0($a0) #save new value
lw $a2, globalVariable #get new value