I'm trying to understand some code. I'm still at the very beginning of MIPS. I tried to get it run on Mars to understand whats happening step by step. However it's stops at line 6: Runtime exception at 0x0040000c (refers to line 6): address out of range 0x000003ec.
I tried to find a solution by looking throught other posts here, however wasn't able to identify the problem.
add $t6, $t0, $t0
addi $t4, $t0, 0x7
andi $t3, $t4, 0x4
loop:
lw $t2, 0x3e8($t3)
add $t6, $t3, $t6
addi $t5, $t4, 1
sub $t1, $t2, $t6
bne $t5, $t6, loop
sw $t6, 0x400($t1)
If you could hepl me out I would really appreciate it!
$t0at start?? - Erik Eidt