06-24-2015, 01:10 PM
(06-24-2015, 04:41 AM)dylanrusell Wrote: The command Jump if negative seems rather redundant since you could do jump if less than and compare $0 to the register in question. Since $0 is always a constant 0 why not just check if the number is less than and it will always tell you if it's negative number.
Also you keep mentioning a book, yet you are not citing it. My question is what book are you referring to?
But that wont work as my CPU can not handle negative numbers, so when comparing it with zero the answer will always be greater than. The only reason I would have this flag is for something like a calculator program that would check the result of a subtraction calculation to see if the overflow bit is off. This would then send an error saying that the answer is negative.
Also the book is called But How Do It Know by J. Clark Scott