NEC V850E/RS1 User Manual page 68

32-/16-bit single-chip microcontroller with can interface
Table of Contents

Advertisement

Maximum positive value is exceeded.
Maximum negative value is exceeded.
Positive (maximum value is not exceeded) Holds value before
Negative (maximum value is not exceeded)
(5)
CALLT execution status saving registers (CTPC and CTPSW)
CTPC and CTPSW are CALLT execution status saving registers.
When the CALLT instruction is executed, the contents of the program counter (PC) are saved to
CTPC, and those of the program status word (PSW) are saved to CTPSW.
The contents saved to CTPC are the address of the instruction next to CALLT.
The current contents of the PSW are saved to CTPSW.
Bits 31 to 26 of CTPC and bits 31 to 8 of CTPSW are reserved (fixed to 0) for future function
expansion.
CTPC
CTPSW
The values of CTPC and CTPSW are restored to PC and PSW during execution of the CTRET
instruction.
68
Downloaded from
Elcodis.com
electronic components distributor
Figure 3-6: Program Status Word (PSW) Format (2/2)
Status of operation result
Figure 3-7: CALLT Execution Status Saving Registers (CTPC and CTPSW) Format
31
26 25
0
0
0 0 0 0
31
0
0
0 0 0 0
0
0
0 0 0 0
Chapter 3 CPU Function
Flag status
SAT
OV
1
1
operation
(PC contents)
0
0
0 0 0 0
0
0
0 0 0 0
User's Manual U16702EE3V2UD00
Result of operation of
saturation processing
S
1
0
7FFFFFFFH
1
1
80000000H
0
0
Operation result itself
1
0
After reset
0xxxxxxxH
(x: Undefined)
8
0
After reset
(PSW contents)
000000xxH
(x: Undefined)

Advertisement

Table of Contents
loading

Table of Contents