REGISTERS

 

 

SP

 

 

 

SP

Address:

18H

 

Reset State:

XXXXH

The system’s stack pointer (SP) can point anywhere in internal or external memory; it must be word aligned and must always be initialized before use. The stack pointer is decremented before a PUSH and incremented after a POP, so the stack pointer should be initialized to two bytes (in 64-Kbyte mode) or four bytes (in 1-Mbyte mode) above the highest stack location. If stack operations are not being performed, locations 18H and 19H may be used as standard registers.

15

0

 

Stack Pointer

 

 

Bit

Function

Number

 

 

 

15:0

Stack Pointer

This register makes up the system’s stack pointer.

C-49

Page 526
Image 526
Intel 8XC196MH, 8XC196MD, 8XC196MC manual Stack Pointer