Subtract 10 bit value with QG8

Discussion created by Guest on Feb 18, 2008
Latest reply on Feb 18, 2008 by Jim Donelson
I have a question is regards to subtracting a 10 bit value in QG8, the reason being I want to use 10 bit ADC sampling mode and display it using 7 segment leds. However, in order to do this I need to compare and subtract the 10 bit sample. The CMP and SUB  instruction use the 8 bit accumulator to do this, does anyone have any idea to achive CMP and SUB in 10 bits?