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

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -