Search code examples
assemblyarminstruction-setinstructionsthumb

Is CMPS a valid ARM/THUMB instruction?


I know that the CMP instruction updates the condition flags. In some material from my university, I have seen a CMPS instruction. It seems pretty senseless to me, as the condition flags are set anyways (I guess they are trying to confuse us...). I was wondering if CMPS is even a valid instruction, i.e. whether a standard ARM assembler accepts it?

I could not find anything about such an instruction online. It's not mentioned here and this online assembler/emulator does not accept it either.


Solution

  • You are right in every aspect, and cmps isn't even a valid instruction.