Comparison of 0x00000000 with 0xFFFFFFFF in MIPS

I am trying to sort a list of 32-bit numbers using the MIPS assembler and xspim . I went through my code to see what was failing and noticed that when comparing 0x00000000 with 0xFFFFFFFF, it does not compare these numbers as it should. At that moment when the program failed, I received 0x00000000 in $ t3 and 0xFFFFFFFF in $ t4, and it looks like this:

bge $t3,$t4,lol# So, if t3more or equal, I have to go forward, continue. Now the problem is that the program leaps, even if t3less.

+5
source share
1 answer

, 0xffffffff -1, .. 2-.

, . . (, , bgt bgtu, u unsigned.)

+4

All Articles