vendredi 30 octobre 2020

MIPS If Statement Being Ignored

I have a word array of 1's and 0's that is 7x5. My code is supposed to branch whenever there's a 1 to display a certain graphic, however, I noticed that the statement is being ignored. Here's the code:

bge s1, 5, _increment_outer_loop

la a0, arena

mul t0, s0, 28 #i

mul t1, s1, 4 #j

add t1, t1, t0

add t2, a0, t1

beq t2, 1, _draw_arena

j _increment_inner_loop

Can anyone shine light on the problem? Thank you

Aucun commentaire:

Enregistrer un commentaire