Re: Simple/Fast Algorithm for binary logarithm in C (on ARM7)



Rafael Deliano schrieb:

unfortunately the listing appears somehow broken (at least it's not
readable to me...).
Ah well: thats 6502 postfix assembler. IO ( to FORTH ) is via a 16 bit
stack simulated by the X-register.
I don´t have the 6502-manual online, but the 68HC08 is similar
( but bigendian ):
http://www.embeddedforth.de/GP32/08asm.pdf

Cleaned up original layout may be easier to read:
http://www.embeddedforth.de/temp/scanbit.pdf

Obviously I'm not used to "postfix assembler" - for me, this one appears
as broken as the other... :-)

Tilmann

--
http://www.autometer.de - Elektronik nach Maß.
.