I just start to learning mips assembly programming and use QtSpim emulator. The example code is copied from a tutorial. But when loaded using QtSpim, it complains following error:
spim: (parser) syntax error on line 6 of file /home/k/Desktop/work/asm/h3.asm
la $t0, value
The exmple code:
1 # add two numbers 2 .text 3 .globl main 4 5 main: 6 la $t0, value 7 lw $t1, 0($t0) 8 lw $t2, 4($t0) 9 add $t3, $t1, $t2 10 sw $t3, 8($t0) 11 12 .data 13 value: .word 10, 20, 0 14