ST62T18C/E18C
INSTRUCTION SET (Cont’d)
Conditional Branch. The branch instructions
achieve a branch in the program when the select-
ed condition is met.
Control Instructions. The control instructions
control the MCU operations during program exe-
cution.
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.
Table 22. Conditional Branch Instructions
Jump and Call. These two instructions are used
to perform long (12-bit) jumps or subroutines call
inside the whole program space.
Instruction
Branch If
Bytes
JRC e
C=1
1
JRNC e
C=0
1
JRZ e
Z=1
1
JRNZ e
Z=0
1
JRR b, rr, ee
Bit = 0
3
JRS b, rr, ee
Bit = 1
3
Notes:
b. 3-bit address
e. 5 bit signed displacement in the range -15 to +16<F128M>
ee. 8 bit signed displacement in the range -126 to +129
Table 23. Bit Manipulation Instructions
Cycles
2
2
2
2
5
5
Flags
Z
C
*
*
*
*
*
*
*
*
*
∆
*
∆
rr. Data space register
∆ . Affected. The tested bit is shifted into carry.
* . Not Affected
Instruction
SET b,rr
RES b,rr
Addressing Mode
Bit Direct
Bit Direct
Bytes
2
2
Cycles
4
4
Flags
Z
C
*
*
*
*
Notes:
b. 3-bit address;
rr. Data space register;
* . Not<M> Affected
Table 24. Control Instructions
Instruction
Addressing Mode
NOP
RET
RETI
STOP (1)
WAIT
Inherent
Inherent
Inherent
Inherent
Inherent
Bytes
1
1
1
1
1
Cycles
2
2
2
2
2
Flags
Z
C
*
*
*
*
∆
∆
*
*
*
*
Notes:
1. This instruction is deactivated<N>and a WAI T is automatically executed instead of a STOP if the watchdog function is selected.
∆ . Affected
*. Not Affected
Table 25. Jump & Call Instructions
Instruction
Addressing Mode
CALL abc
JP abc
Extended
Extended
Bytes
2
2
Cycles
4
4
Flag s
Z
C
*
*
*
*
Notes:
abc. 12-bit address;
* . Not Affected
60/82
60