I am trying to execute a very simple program but I keep getting the error :Invalid language element
lw $t0, 0($a0) #load integer from $a0->$t0
beq $t0, 1, 1dimensional #branch if $t0=1
1dimensional:
do something
I cant understand why I am getting the error.
beqis a pseudo-op [if the assembler suports it, whichmarsdoes]. It generates the following "real" instruction sequence:addi $at,$zero,1/beq $at,$t0,1dimensional. - Craig Estey$1is the "assembler temporary" ($at), which is used by some pseudo-instructions to hold an intermediate result. It's fine to use it as a regular GPR if you avoid pseudo-instructions, or make sure that you don't rely on its value being preserved across any pseudo-instruction usage. - Michael