Mail Archives: djgpp/1996/11/07/23:44:43
Christian Votava wrote:
>
> I have some problems with at&t syntax:
>
> how to repeat STOSB with CX ?
>
> REP
> STOSB
>
> use the register ECX. So, is it possible to use CX ?
I'm not absolutly certain, but I think if you put an opcode size prefix
befor the rep, CX will be used instead.
.byte 0x66
rep
stosb
I think if you use the address size prefix (0x67), you will be able to
use SI and DI instead of ESI and EDI.
Hope this helps
Bill
--
Leave others their otherness.
- Raw text -