Nexo just mage a code that is very noticable though based
on knowlige of basic arithmetic and complemetary code.
That proves that creatuvity can always make something better than old thing even in very basic place.

He make the fastest check for range I've ever seen (not mentioned a table methods of course)

The only credit I can take that I contstantly bombard him
with my alternatives questioning perfection of his code.
He become peaky about it and finally done the best possible
version for the moment :)

That truth about us Russians - sometimes we need be in anger
to get over laziness :) Jocking.
His version for digit:
lea ecx,
cmp ecx,9
ja nodigit

Simple huh?
But I haven't seen it before :)

It's limited to signed positive numbers (upto 8000 0000h)
So now checking range shall be done this way:

IfInRange macro reg,uplim,lowlim,lbl
lea ecx,
cmp ecx,uplim-lowlim
jna lbl ;if in range
endm
Posted on 2002-02-17 12:55:29 by The Svin

IfInRange macro reg,uplim,lowlim,lbl
lea ecx,[eax-lowlim]
cmp ecx,uplim-lowlim
jna lbl ;if in range
endm
shouldn't that be reg? ;)
Posted on 2002-02-21 23:37:00 by cynix
right :)
Posted on 2002-02-22 06:01:03 by The Svin