Re: Fast asm conversion of string of hex chars into binary
- From: "vid512@xxxxxxxxx" <vid512@xxxxxxxxx>
- Date: 25 Nov 2006 06:28:26 -0800
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"
.
- References:
- Fast asm conversion of string of hex chars into binary
- From: James Harris
- Fast asm conversion of string of hex chars into binary
- Prev by Date: Fast asm conversion of string of hex chars into binary
- Next by Date: Re: Fast asm conversion of string of hex chars into binary
- Previous by thread: Fast asm conversion of string of hex chars into binary
- Next by thread: Re: Fast asm conversion of string of hex chars into binary
- Index(es):
Relevant Pages
|