
eZ8
™
CPU Core
User Manual
UM012820-0810 SWAP Instruction
237
SWAP
Definition
Swap Nibbles.
Syntax
SWAP dst
Operation
dst[7:4]
dst[3:0]
Description
This instruction swaps the contents of the upper nibble of the destination,
dst[7:4], with the lower nibble of the destination, dst[3:0].
Flags
Attributes
C Undefined
Z Set if the result is zero; reset otherwise
S Set if Bit 7 of the result is set; reset otherwise
V Undefined
D Unaffected
H Unaffected
Mnemonic Destination
Op
Code
(Hex) Operand 1 Operand 2 Operand 3
SWAP R1 F0 R1 — —
SWAP @R1 F1 R1 — —
Komentáře k této Příručce