• subtraction with borrow
    Hi all How to write a pragram to subtraction immediate data from accumulator with borrow in C51?
  • Problem With Subtraction
    I am trying to do a straight forward subtraction and am getting the wrong result every time. The code is as simple as if(SetPoint>PulseCountLast) { error = SetPoint-PulseCountLast; } All three...
  • Unsigned short subtraction
    I don't know what the ANSI/ISO C standard says about this, but I would expect the if block in the example below to be executed when a is 0 and b is 65535: /* a and b are unsigned short (16 bits)...
  • Problem With Subtraction
    I am trying to do a straight forward subtraction and am getting the wrong result every time. The code is as simple as if(SetPoint>PulseCountLast) { error = SetPoint-PulseCountLast; } All three...
  • subtraction with borrow
    Hi all How to write a pragram to subtraction immediate data from accumulator with borrow in C51?