assembly - Binary subtraction -


say i'm going subtract: 0000 0000 - (-1)

that is: (two complement)

      0000 0000     - 1111 1111       ---------     = ???? ???? 

whats gonna happen, brain f***ing me right now, went fine before, think overflow thats screwing me up, can give clearance on please :)?

take two's complement of subtrahend , add minuend.

  0000 0000 - 1111 1111   ...    0000 0000 + 0000 0001 -----------   0000 0001 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -