Search⌘ K
AI Features

Logical Instructions

Explore logical instructions used in ARM64 assembly including AND, OR, and bit shift operations. Understand how these instructions manipulate data at the binary level, and how they fit into program flow with the instruction pointer. Gain knowledge essential for debugging and analyzing disassembled code.

Instruction format

We have seen that most assembly language instructions have a uniform format, for example:

C++
Opcode operand
Opcode destination_operand, source_operand
Opcode destination_operand, source_operand1, source_operand2

Only the str-family of instructions has followed the below-mentioned format:

C++
Opcode source_operand, destination_operand

Operands can be:

  • Registers (reg)
  • Memory labels (mem)
...