How jng works in assembly? -
i need make sub if bl>7fh
code i'm using is:
cmp bl,7fh jng here sub bl,bl here: i know bl>7fh because bl=92 , jng jump if bl not greater than 7fh
in case bl greater 7fh why jumps?!
the condition jng signed not greater than. depending on whether meant 92 or 92h either 92 or -110 when interpreted signed byte. in case, that's less 127 (7fh), means jng should jump.
what want unsigned not greater (the name "not above" or "below or equal"). i.e.
jna here ; or jbe here
Comments
Post a Comment