---------- > Van: Peter Baines > Aan: PICLIST@MITVMA.MIT.EDU > Onderwerp: Dumb question > Datum: dinsdag 3 maart 1998 12:32 > > hello folks, > I know this is a dumb question and I will probably want to crawl into a > hole when I get the answer but ..... does anybody have some code to > subtract one 16 bit number from another NOT using 2s compliment so that it > returns an ABS result with a flag (AKA register) to say if it is negative. > > P. Take the 2's complement of your answer _IF_ you get a Borrow (Not-Carry) from your subtraction. Remember my son, don't fight the force of your opponent, but use it to get what you want .... (You didn't want to use 2's complement, I'm using it twice :-) Greetz, Rudy Wieser