math - Should 0xABCD - 0x1234 set the carry bit? -


i studying final when came across question here:

question

after going through it, got answer of 0x9999 because when perform subtraction via 2's complement, there carry on msb, branch instruction send program loc1. professor says answer 0x9997, possible if carry bit not set. i've looked , seems carry bit should have been set here. missing or did professor make mistake?


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -