| | | RE: How to do less than compare? You can use the SUBB instruction but there''s a btter way. You need to use CJNE. A little-known fact is that CJNE sets the carry flag as if a subtract was performed, so if you do a CJNE to the next instruction, carry will be set if the first operand is less than the second operand.
mov a, Variable1
cjne a, Variable2, $ + 3
jc Wherever
In this example, the ... more (see whole posting) |
|
13-4-2004 0:12 Views: 1985 |
PReedio |