I'm trying to make a program that calculates the following mathematical equation: A = B + C. B must be stored in memory, while C in a register.
So far I have done the following, but it doesn't work:
.set noreorder
.data
b: .word 20
c: .word 10
.text
.globl main
.ent main
main:
la $t0, b
lw $a0, 0($t0)
la $t1, c
lw $a1, 0($t1)
add $t9, $a0, $a1
.end main
Any help much appreciated. Thanks.
lamnemonic is not being recognized. What assembler? - HBPla,lwetc. I have found not good reference to any assembler calledmipslt- HBP