|
Nevermind, I finally got it. I wasn't initializing R2 to zero. I also had some unreachable code, but ultimately the last thing I finally figured out was that I needed to initialize R2 to zero so when I jumped to the end of the program when R1 was zero or R0 was zero, R2 would have the correct answer already at that point in time.
|