Semiconductor Group
4-7
1998-04-01
Instruction Set
C500 Family
4.3
Instruction Definitions
All 111 instructions of the C500 family microcontrollers can essentially be condensed to 53 basic
operations, in the following alphabetically ordered according to the operation mnemonic section.
A brief example of how the instruction might be used is given as well as its effect on the PSW flags.
The number of bytes and machine cycles required, the binary machine language encoding, and a
symbolic description or restatement of the function is also provided.
Note:
Only the carry, auxiliary carry, and overflow flags are discussed. The parity bit is always computed
from the actual content of the accumulator.
Similarly, instructions which alter directly addressed registers could affect the other status flags if
the instruction is applied to the PSW. Status flags can also be modified by bit manipulation.
Table 4-2
PSW Flag Modification (CY,OV,AC)
Instruction
Flag
Instruction
Flag
CY
OV
AC
CY
OV
AC
ADD
X
X
X
SETB C
1
ADDC
X
X
X
CLR C
0
SUBB
X
X
X
CPL C
X
MUL
0
X
ANL C,bit
X
DIV
0
X
ANL C,/bit
X
DA
X
ORL C,bit
X
RRC
X
ORL C,/bit
X
RLC
X
MOV C,bit
X
CJNE
X