www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/07/23:44:43

Date: Fri, 08 Nov 1996 17:31:34 +0000
From: Bill Currie <billc AT blackmagic DOT tait DOT co DOT nz>
Subject: Re: AT&T syntax
To: votava AT worldnet DOT fr
Cc: djgpp AT delorie DOT com
Reply-to: billc AT blackmagic DOT tait DOT co DOT nz
Message-id: <32836E76.61A6@blackmagic.tait.co.nz>
Organization: Tait Electronics NZ
MIME-version: 1.0
References: <32826B1B DOT 33A AT worldnet DOT fr>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019