Logical Instructions

Learn about the different logic instructions and how they work.

Instruction format

We’ve seen that most assembly language instructions have a uniform format. For example:

Opcode operand
Opcode source_operand, destination_operand

Operands can be:

  • registers (reg)
  • memory labels (mem)
  • some numbers, called immediate values (imm)

Here are some typical notational examples:

Get hands-on with 1200+ tech skills courses.