Download Print this page

Siemens SAB 80515 Series User Manual page 205

8-bit single-chip microcontroller family

Advertisement

XCHD
A,@Ri
Function:
Exchange digit
Description:
XCHD exchanges the low-order nibble of the accumulator (bits 3-0, generally
representing a hexadecimal or BCD digit), with that of the internal RAM location
indirectly addressed by the specified register. The high-order nibbles (bits 7-4) of
each register are not affected. No flags are affected.
Example:
R0 contains the address 20 H . The accumulator holds the value 36 H (00110110B).
Internal RAM location 20 H holds the value 75 H (01110101B). The instruction
XCHD
will leave RAM location 20 H holding the value 76 H (01110110B) and 35 H
(00110101B) in the accumulator.
Operation:
XCHD
(A3-0)
Encoding:
1 1 0 1
Bytes:
1
Cycles:
1
Semiconductor Group
A, @ R0
← →
((Ri)3-0)
0 1 1 i
*
205
Instruction Set

Advertisement

loading

This manual is also suitable for:

Sab 80c515Sab 80c535Sab 80535Sab 80515k