GMS81C2020/GMS81C2120
Hyundai Micro Electronics
below table.
Stack Area
The stack provides the area where the return address is
saved before a jump is performed during the processing
routine at the execution of a subroutine call instruction or
the acceptance of an interrupt.
When read
Addr.
When write
Timer
Mode
Capture
Mode
PWM
Mode
Timer
PWM
Mode
Mode
TDR0
TDR1
-
When returning from the processing routine, executing the
subroutine return instruction [RET] restores the contents of
the program counter from the stack; executing the interrupt
return instruction [RETI] restores the contents of the pro-
gram counter and flags.
D1H
D3H
D4H
ECH
T0
T1
CDR0
-
-
-
T1PPR
T1PDR
CDR1 T1PDR
BITR
CKCTLR
The save/restore locations in the stack are determined by
the stack pointed (SP). The SP is automatically decreased
after the saving, and increased before the restoring. This
means the value of the SP indicates the stack location
number for the next save.
Table 11-5 Various Register Name in Same Address
36
preliminary
Nov. 1999 Ver 0.0