Excuse me I'm using a MIPS simulator.
Occurs that when I'm trying to open the text file that contains my code in the simulator appears me this message:
spim: (parser) syntax error on line 35 of file /home/v-wrampht3r/Desktop/MIPS.s
mult $s4, $s0, $s1
^
And also,when I'm trying to execute it,appears me this other message,which I understand that says which the emulator does not interpret which has an instruction declared in the line where the error has produced:
Attempt to execute non-instruction at 0x00400050
I leave you it:
.data
op1: .word 25
op2: .word 7
suma: .word 0
resta: .word 0
multbajo: .word 0
multalto: .word 0
divis: .word 0
resto: .word 0
.text
main:
lw $s0, op1
lw $s1, op2
add $s2, $s0, $s1
sw $s2, suma
sub $s3, $s0, $s1
sw $s3, resta
mult $s4, $s0, $s1
mfhi $s4, multalto
mult $s5, $s0, $s1
mflo $s5, multbajo
div $s6, $s0, $s1
sw $s6, divis
div $s7, $s0, $s1
mfhi $s7, resto
The tags suma, resta, multbajo, etc are one below the other, what happens is that,for some reason,in the text are interspersed one with each other.