h8s-2628 Renesas Electronics Corporation., h8s-2628 Datasheet - Page 104

no-image

h8s-2628

Manufacturer Part Number
h8s-2628
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2600 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 4 Exception Handling
4.8
When accessing word data or longword data, this LSI assumes that the lowest address bit is 0. The
stack should always be accessed by word transfer instruction or longword transfer instruction, and
the value of the stack pointer (SP: ER7) should always be kept even. Use the following
instructions to save registers:
Use the following instructions to restore registers:
Setting SP to an odd value may lead to a malfunction. Figure 4.4 shows an example of what
happens when the SP value is odd.
Rev. 3.00 Oct 04, 2005 page 64 of 598
REJ09B0155-0300
SP
Legend:
CCR:
PC:
R1L:
SP:
Note: This diagram illustrates an example in which the interrupt control mode is 0, in advanced mode.
PUSH.W
PUSH.L
POP.W
POP.L
SP set to H'FFFEFF
Usage Note
Condition code register
Program counter
General register R1L
Stack pointer
Rn
ERn
Rn
ERn
Figure 4.4 Operation when SP Value Is Odd
(or MOV.W Rn, @-SP)
(or MOV.L ERn, @-SP)
(or MOV.W @SP+, Rn)
(or MOV.L @SP+, ERn)
SP
TRAP instruction executed
Data saved above SP
CCR
PC
SP
MOV.B R1L, @-ER7 instruction executed
Contents of CCR lost
R1L
PC
H'FFFEFA
H'FFFEFB
H'FFFEFC
H'FFFEFD
H'FFFEFE
H'FFFEFF
Address

Related parts for h8s-2628