the directive puts the word word -2 and -6 into the code stream. if you look at the actual binary representation of this fragment, you will find in the middle of the command encoding some FFFFFFFEFFFFFFFA or FEFFFFFFFAFFFFFF depending on the entity.
The assembler will emit 2 words worth the data -2 and -6, respectively, nothing like a single word -8.
, AVG: ,
lw $v0, ($ra)
lw $t3, 4($ra)
2 v0 t3 (.. , .. , ). ... v0 -2 , t3 -6. , 8 $ra , .
, .
, , , 2 , , ( , Average). , ( asm , ). , AVG , , ( ), .