assemblyarmbitwise-operatorsarm7

NAND logical bitwise operation in ARM


Is there a way to perform a bitwise NAND operation on the bits in two registers in ARM7, either with the existing AND, OR and EOR operations or other instructions?


Solution

  • Sure; AND the two registers and then EOR the result with all 1's (for the negation).