Author Topic: Are all this valid instructions: CMPS MOVS LCS LODS STOS XLAT?  (Read 11072 times)

Offline dalfonso01

  • Jr. Member
  • *
  • Posts: 44
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

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: Are all this valid instructions: CMPS MOVS LCS LODS STOS XLAT?
« Reply #1 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


Offline dalfonso01

  • Jr. Member
  • *
  • Posts: 44
Re: Are all this valid instructions: CMPS MOVS LCS LODS STOS XLAT?
« Reply #2 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
« Last Edit: May 17, 2014, 08:18:55 PM by dalfonso01 »