This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

signed / unsigned comparisons

Hi!

I'm using 16F11 with CCE4:

After a unsigned multiply on Hardware Multiplier, I want to compare le RESLO register with another number.

cmp RESLO, R7

jl DIV_32_MINUS

 

everything works fine when RESLO<7FFFh, but when raised, the result is not the previsible. The cmp answer that 0x0444>0x8000

What I'm forgetting?

 

Thanks a lot!

Tico.Spain.

**Attention** This is a public forum