
5-176
Z380
™
USER'S MANUAL
DC-8297-03
ZILOG
SWAP
SWAP UPPER REGISTER WORD WITH LOWER REGISTER WORD
SWAP src src = R, RX
Operation: src(31-16) ↔ src(15-0)
The contents of the most significant word of the source are exchanged with the contents of
the least significant word of the source.
Flags: S: Unaffected
Z: Unaffected
H: Unaffected
V: Unaffected
N: Unaffected
C: Unaffected
Addressing Execute
Mode Syntax Instruction Format Time Note
R: SWAP R 11101101 00rr1110 2
RX: SWAP RX 11y11101 00111110 2
Field Encodings: rr: 00 for BC, 01 for DE, 11 for HL
y: 0 for IX, 1 for IY
Comentários a estes Manuais