SWAP (Swap two topmost register stack entries)

February 20, 2021 ยท View on GitHub

Opcode

76543210
110111r

Operation

Swap the two topmost stack entries (Reg16[r] with the most recently pushed value)
PC <- PC + 1

Assembler syntax examples

SWAP BC

Contents

  1. 1Opcode
  2. 2Operation
  3. 3Assembler syntax examples