Copyright ã 2005 Symbian Ltd.
59
Checking for stack overflow
•The stack has overflowed if R13 < stack base
…Plus: the exception id will indicate a data abort
…
…Exc 1 Cpsr=68000030 FAR=00414fe8 FSR=00000807
…R12=800c3699 R13=00414ff8 R14=800c8d43 R15=800c8a1c
…User stack base 00415000 size 1000
…
…
•
RAM
Start of Stack = 416000
Stack Base = 415000
Stack moves down (R13 gets smaller) from top of stack to the base
Stack Overflow