R01UH0823EJ0100 Rev.1.00
Page 94 of 1823
Jul 31, 2019
RX23W Group
2. CPU
?: Conditional operator
Note 1. Each of the SCMPU, SMOVU, SWHILE, and SUNTIL instructions ends the execution regardless of the specified cycles, if the
end condition is satisfied during execution.
Note 2. floor (x): Max. integer that is smaller than x.
Table 2.19
Number of Cycles for String Manipulation Instructions
Instruction
Mnemonic
(indicates the common operation when the size is omitted)
Number of Cycles
String manipulation instructions*
SCMPU
2+4×floor(n/4)+4×(n%4)
n: Number of comparison
bytes*
SMOVB
n>3?6+3×floor(n/4)+3×(n%4):2+3n
n: Number of transfer bytes*
SMOVF, SMOVU
2+3×floor(n/4)+3×(n%4)
n: Number of transfer bytes*
SSTR.B
2+floor(n/4)+n%4
n: Number of transfer bytes*
SSTR.W
2+floor(n/2)+n%2
n: Number of transfer words*
SSTR.L
2+n
n: Number of transfer longwords
SUNTIL.B, SWHILE.B
3+3×floor(n/4)+3×(n%4)
n: Number of comparison
bytes*
SUNTIL.W, SWHILE.W
3+3×floor(n/2)+3×(n%2)
n: Number of comparison
words*
SUNTIL.L, SWHILE.L
3+3×n
n: Number of comparison
longwords
Table 2.20
Number of Cycles for System Manipulation Instructions
Instruction
Mnemonic
(indicates the common operation when the size is omitted)
Number of Cycles
System manipulation instructions
{CLRPSW, SETPSW}“flag”
MVTC “#IMM, CR”/“Rs, CR”
MVFC “CR, Rd”
MVTIPL “#IMM”
1
RTE
6
RTFI
3