Declaring more than one SPIM array causes a syntax error
- by Zack
Below is the beginning of a chunk of SPIM code:
.data
a: .space 20
b: .space 20
.text
set_all:
sw $ra,0($sp)
li $t0,0
li $t1,10
............
Unfortunately, the second array I declare ('b') causes the SPIM interpreter to spit out:
spim: (parser) syntax error on line 3
of file spim.out b: .space 20
…