ST6200C/ST6201C/ST6203C
INSTRUCTION SET (Cont’d)
Conditional Branch. Branch instructions perform
a branch in the program when the selected condi-
tion is met.
Control Instructions. Control instructions control
microcontroller operations during program execu-
tion.
Bit Manipulation Instructions. These instruc-
tions can handle any bit in Data space memory.
One group either sets or clears. The other group
(see Conditional Branch) performs the bit test
branch operations.
Jump and Call. These two instructions are used
to perform long (12-bit) jumps or subroutine calls
to any location in the whole program space.
Table 19. Conditional Branch Instructions
Flags
Instruction
Branch If
Bytes
Cycles
Z
*
*
*
*
*
*
C
*
JRC e
C = 1
1
1
1
1
3
3
2
2
2
2
5
5
JRNC e
C = 0
Z = 1
*
JRZ e
*
JRNZ e
Z = 0
*
JRR b, rr, ee
JRS b, rr, ee
Bit = 0
Bit = 1
∆
∆
Notes:
b
e
3-bit address
rr
∆
*
Data space register
Affected. The tested bit is shifted into carry.
Not Affected
5 bit signed displacement in the range -15 to +16
ee 8 bit signed displacement in the range -126 to +129
Table 20. Bit Manipulation Instructions
Flags
Instruction
Addressing Mode
Bytes
Cycles
Z
C
*
SET b,rr
Bit Direct
Bit Direct
2
2
4
4
*
*
RES b,rr
*
Notes:
b
3-bit address
Data space register
*
Not Affected
rr
Bit Manipulation Instructions should not be used on Port Data Registers and any registers with read only and/or write only bits (see I/O port
chapter)
Table 21. Control Instructions
Flags
Instruction
Addressing Mode
Bytes
Cycles
Z
*
C
*
NOP
Inherent
Inherent
Inherent
Inherent
Inherent
1
1
1
1
1
2
2
2
2
2
RET
*
*
RETI
STOP
WAIT
∆
*
∆
*
(1)
*
*
Notes:
1.
This instruction is deactivated and a WAIT is automatically executed instead of a STOP if the watchdog function is selected.
∆
Affected
*Not Affected
Table 22. Jump & Call Instructions
Flags
Instruction
Addressing Mode
Bytes
Cycles
Z
*
C
*
CALL abc
Extended
Extended
2
2
4
4
JP abc
*
*
Notes:
abc 12-bit address
*
Not Affected
58/104
1