42
www.ubicom.com
IP2022 Data Sheet
Figure 4-14 Stack Operation on Subroutine Return
For program bugs involving stack underflow, the
instruction at byte address 0x1FFFE (word address
0xFFFF) can be used to jump to an appropriate handler.
For example, system recovery may be possible by
jumping to the reset vector at byte address 0x1FFE0
(word address 0xFFF0).
515-011.eps
Stack 1
Stack 2
Program Counter (15:0)
Stack 16 Contents
Loaded with 0xFFFF
Stack 3
Stack 4
Stack 5
Stack 6
Stack 7
Stack 8
Stack 9
Stack 10
Stack 11
Stack 12
Stack 13
Stack 14
Stack 15
Stack 16