Siemens C500 User Manual page 104

Microcontroller family
Table of Contents

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 (00110110 B ).
Internal RAM location 20 H holds the value 75 H (01110101 B ). The instruction
XCHD
will leave RAM location 20 H holding the value 76 H (01110110 B ) and 35 H
(00110101 B ) 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
4-78
Instruction Set
C500 Family
1998-04-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents