How can I use instructions to determine if a carry out of the MSB occurred in executing the MIPS instruction: addu $t2,$t1,$t0
by only examining the contents of the registers before and/or after the instruction executes? is there any instruction that I can use?
Asked
Active
Viewed 106 times
0

Peter Cordes
- 328,167
- 45
- 605
- 847

user1286550
- 101
- 1
- 6
-
2Does this answer your question? [get unsigned long long addition carry](https://stackoverflow.com/questions/56027411/get-unsigned-long-long-addition-carry). Or better, [use slt to check unsigned integer addition carry flag mips](https://stackoverflow.com/q/33503676) – Peter Cordes Jun 29 '21 at 02:08
-
You could also just look at compiler output for `uint64_t` addition on 32-bit MIPS. – Peter Cordes Jun 29 '21 at 02:09