-1

Hello everyone and thanks for trying to solve this exercise,I know that box al has the value ff, and in the box of bl has the value 03

but when iam doing the cmp al,bl: its not like (al-bl) and 255-3 its 252 Which means it's bigger so why when iam run this code on emu8086 It does not make a jump to L1 Instead he went into the order inc;

(i think its maybe something with the msb i dont know)

enter image description here

4

1 Answer 1

2

The jg instruction indicates that the comparison is signed. This means that your 0xff will be interpreted as -1 as a one's complement value.

The ja instruction performs an unsigned comparison. You will find that this works as you expect.

Not the answer you're looking for? Browse other questions tagged or ask your own question.