title: Should 0xABCD - 0x1234 set the carry bit?
body: <p>I was studying for my final when I came across this question here: </p>
  
  <p><img src="https://i.imgur.com/gPfYhXM.png" alt="question"></p>
  
  <p>After going through it, I got an answer of 0x9999 because when you perform the subtraction via 2's complement, there is a carry on the MSB, so the branch instruction would send the program to loc1. My professor says the answer is 0x9997, which is only possible if the carry bit is not set. I've looked it up and it seems like the carry bit should have been set here. Am I missing something or did my professor make a mistake?</p>