I am trying to run an instruction which I took from GAS style but when I ported this instruction to intel style, I get error like:
"error: parser: instruction expected"
I tried with various combination like REP movsl, REP loadsl but all giving the same problem, Can anybody tell this right command equivalent to REP stosl in x86
The rep
ist just a prefix to indicate that the following instruction has to be repeated (E)CX times. This is only valid for a limited set of instructions though. The actual instruction is the stos
in your case and it needs a type operand. b
for bytes, w
for word and d
for dword operand size.
In your case d
should be the correct operand size.