Re: from elsewhere, an assembler



Wolfgang Kern wrote:

....
[convert nibble to hex-ascii]
cmp al,10
jc +2
add al,7
add al,48

cmp al, 10
sbb al, 69h
das

Shorter, and eliminates the conditional jump... but "das" is so slow (how slow *is* it?), I don't think it's a "win"...

What would be your idea of a "fast" way to do it?

Best,
Frank
.



Relevant Pages

  • Re: File I/O
    ... sbb al, 69h ... possibly even slower? ...
    (comp.lang.asm.x86)
  • Re: from elsewhere, an assembler
    ... sbb al, 69h ... Shorter, and eliminates the conditional jump... ... but "das" is so slow ...
    (alt.lang.asm)
  • Re: File I/O
    ... possibly even slower? ... Continuing the "funky tricks with sbb" theme that seems to be running this ...
    (comp.lang.asm.x86)
  • Re: from elsewhere, an assembler
    ... sbb al, 69h ... Shorter, and eliminates the conditional jump... ... but "das" is so slow ...
    (alt.lang.asm)
  • Re: File I/O
    ... |> DAA -method is shortest but very slow. ... your code is shorter and faster than ... cycles with 8 bytes. ... [aaa aad aam aas daa das] ...
    (comp.lang.asm.x86)