Not a very good academic analysis because you are not using the whole range that 8-bits can represent.
Academics have nothing to do with this problem. I start out with the highest positive 8-bit signed number of 127 or 7Fh. Then I subtract -128 or 80h and get an overflow right away. So I switch to a 9 bit word. Now there is an ambiguity with the problem statement. Do I use the same 8-bit values or new 9-bit values? NorthGuy and I appear to use the old 8-bit values, and determined we need 12 bits to represent the expression. The other option is to use what the values of the 9-bit register will be. I will let you do that problem if you want.
Ratch
Last edited: