Negate the value in a register.
is an optional condition code.
is the destination register.
is the register containing the value that is subtracted from zero.
NEG pseudo-instruction negates
the value in one register and stores the result in a second register.
The ARM encoding of this pseudo-instruction is available in all versions of the ARM architecture.
The 32-bit Thumb encoding of this pseudo-instruction is available in ARMv6T2 and later.
In ARM instructions, using SP or PC for
deprecated. In Thumb instructions, you cannot use SP or PC for
This pseudo-instruction updates the condition flags, based on the result.