implement C=|A-B| with inc,dec,jnz (A,B are none negative) : Its a question I saw in an interview :
A,B are none negative numbers and you need to return C=|A-B| where you have only the following instruction :

**Inc register** - adds one to **register**

**Dec register** - substracts one from **register**

**JNZ LABEL** - jumps to labael if last instruction result was not zero

In addition you can use other registers that their initial value is zero;

Thanks for your help