piclist 2002\02\25\165257a >
Thread: is it ok to have stack underflow ?
www.piclist.com/techref/microchip/devices.htm?key=pic
picon face BY : wouter van ooijen & floortje hanneman email (remove spam text)



> The position of the stack
> pointer within the stack is completely unknown at power up

It is easier to regard the pic stack as not having a stack pointer but as a
chain of registers. Maybe it is even implemented that way. Consider a shelve
of 8 books. You can add one at the right side, and the leftmost book will
fall of the shelve and is lost forever. You can take off the rightmost and a
magic copying machine duplicates the leftmost book. There are ALWAYS exactly
8 books on the shelve. The pic starts with 8 'random' books. A wise man does
not return to one of these books.

Wouter van Ooijen
--
Van Ooijen Technische Informatica: http://www.voti.nl
Jal compiler, Wisp programmer, WLoader bootloader, PICs kopen

--
http://www.piclist.com hint: To leave the PICList
RemoveMEpiclist-unsubscribe-requestKILLspamspammitvma.mit.edu


<065d01c1bdf4$ad416ae0$0500a8c0@home> 7bit

See also: www.piclist.com/techref/microchip/devices.htm?key=pic
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) is it ok to have stack underflow ?

month overview.

new search...