You can test various comparison equations with something like this. Just
compile each one separately.
Code:X CON 10 Main: IF (X=5) or (X<=8) THEN ' 30 words @ nop ENDIFThen you could do something like this to save yet a few more words.Code:X CON 10 Main: IF X => 5 THEN IF X < 9 THEN ' 11 words @ nop ENDIF ENDIF
Just place some heavy-duty comments in there so you don't forget what theCode:X CON 10 ' Upper boundary # = 8 ' Lower boundary # = 5 ' Range = 4 (5,6,7,8) ' IF unknown value (X - lower range #) < range, it's in range. Main: IF (X-5) < 4 THEN ' 8 words @ nop ENDIF
heck it's doing down-the-road...;o]




Bookmarks