So I am learning MIPS using the SPIM simulator and im stuck on this problem.
I want to add two 64 bit numbers which are stored in four 32 bit registers. So I add the LO bytes and then the carry and the HI bytes. But there is no adc/addc command i.e. add with carry.
So I would have to add the carry bit in the status register. But, how exactly do I read this register?
If $t0 is temporary register 1, then what is the equivalent of the status register which holds the carry flag?
I have googled a lot I still can't find any examples that even use the status register.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…