Mail Archives: djgpp/2000/03/27/12:25:54
GiLbI <GiLbI AT ngi DOT it> wrote:
> movl $153600,%ecx
> movl $0,%eax
> stosl repnz
That's definitely incorrect syntax. I wonder why gas didn't throw you
an error message for this.
> why if i write repxx at the beginning of statement it isn't correct?
> (repnz stosl -> error)
Because unlike in Intel Syntax, 'rep*' is not a prefix, in AT&T asm;
it's a separate instruction.
> and why "stosl repnz" repeat 1 times instead 153600?
Because there is no 'rep' applied to the 'stosl'.
> code converted with ta2as is "rep: stosl", but always the iterations are
> only one.
'rep: stosl', or maybe 'repnz: stosl' is the correct code, sort
of. You actually need two opcodes
repnz
stosl
The separation by ':' in the line above should do the same, but it may
not work, for some reason.
See the source code for '__dj_movedata()' in 'djlsr203.zip', for
comparison.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -