Hi,
is this substitution correct? I know there are more solutions, but I'm thinking just about this one.
The sense is expressing implicate registers (Accumulator, ES, eDI) in ModR/M byte within some other instructions, not speed optimization.

[size=36]

Mnemonic [B]SCASB/W/D[/B] Hex AE, AF

IF Prefix REP/NE [B]JeCXZ[/B] _out
IF Prefix REP/NE _lbl:
IF Prefix REP/NE [B]DEC[/B] eCX
[B]CMP[/B] Acc, ES:[eDI]
IF DF=0 [B]LEA[/B] eDI , [eDI+1/2/4]
IF DF=1 [B]LEA[/B] eDI , [eDI-1/2/4]
IF Prefix REPNE [B]JE[/B] _out
IF Prefix REPE [B]JNE[/B] _out
IF Prefix REP/NE [B]JeCXZ[/B] _out
IF Prefix REP/NE [B]JMP[/B] _lbl
IF Prefix REP/NE _out:
[/SIZE]
Posted on 2003-09-19 11:28:49 by MazeGen