NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: dalfonso01 on May 15, 2014, 12:06:27 PM

Title: Are all this valid instructions: CMPS MOVS LCS LODS STOS XLAT?
Post by: dalfonso01 on May 15, 2014, 12:06:27 PM
Hi,
I know some , but not all. I noticed that in vi (nasm.vim) this are all in a:

syn keyword nasmInstructnError  CMPS MOVS LCS LODS STOS XLAT
instead of
syn keyword nasmStdInstruction  ....

and that are not shown as the others but with a orange color.

I already know xlat at least, I was going in the subject these weeks.
I will ask to vi community about the reason, but are they all legal?

Thanks
Fabio D'Alfonso
Title: Re: Are all this valid instructions: CMPS MOVS LCS LODS STOS XLAT?
Post by: Frank Kotler on May 16, 2014, 04:08:09 PM
With the exception of "xlat" (alias for "xlatb"), I don't think any of them are valid in Nasm. "cmpsb", "cmpsw", and "cmpsd" (etc.) are valid. Easiest way to tell is probably to try 'em.

Best,
Frank

Title: Re: Are all this valid instructions: CMPS MOVS LCS LODS STOS XLAT?
Post by: dalfonso01 on May 17, 2014, 08:14:29 PM
Hi,
thanks.
I moved only XLAT out of the error directive to a standard instruction e left the others there. I will check later but meanwhile I trust you.

Thanks
Fabio D'Alfonso