MC68HC708AS48 FREESCALE [Freescale Semiconductor, Inc], MC68HC708AS48 Datasheet - Page 83

no-image

MC68HC708AS48

Manufacturer Part Number
MC68HC708AS48
Description
Advance Information
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
7.4.3 Stack Pointer
MC68HC708AS48
MOTOROLA
NOTE:
Rev. 4.0
The stack pointer is a 16-bit register that contains the address of the next
location on the stack. During a reset, the stack pointer is preset to
$00FF. The reset stack pointer (RSP) instruction sets the least
significant byte to $FF and does not affect the most significant byte. The
stack pointer decrements as data is pushed onto the stack and
increments as data is pulled from the stack.
In the stack pointer 8-bit offset and 16-bit offset addressing modes, the
stack pointer can function as an index register to access data on the
stack. The CPU uses the contents of the stack pointer to determine the
conditional address of the operand.
The location of the stack is arbitrary and may be relocated anywhere in
RAM. Moving the SP out of page zero ($0000 to $00FF) frees direct
address (page zero) space. For correct operation, the stack pointer must
point only to RAM locations.
Reset:
Read:
Write:
Bit
15
0
14
Central Processor Unit (CPU)
0
13
0
12
Figure 7-4. Stack Pointer (SP)
0
11
0
10
0
9
0
8
0
7
1
6
1
Central Processor Unit (CPU)
5
1
4
1
Advance Information
3
1
CPU Registers
2
1
1
1
Bit
0
1
83

Related parts for MC68HC708AS48