Re: Fast asm conversion of string of hex chars into binary



mov bl, [esi] ;fetch char
mov bl, convtab[bl] ;convert to (0 to 15)

this won't compile. use:
movzx ebx, [esi]
mov bl, convtab[ebx]

your code is fast enough already. You can unroll loop to make it
slightly faster, but i don't see reason to do this.

And you can place UNTAKEN hint at "ja error", and TAKEN at "jnz loop"

.



Relevant Pages