> What happens to the PIC 873 with a stack underflow? > Where does it program counter reset to? > PIC uses a hardware stack, which is organized as a circular buffer. On stack underflow/overflow, the stack pointer symply wrap arounds. The program counter is then set to whatever the stack pointer points to, e.g. some old (invalid) return address. Frank ----- GSP Sprachtechnologie GmbH Frank Wollenberg HW-Entwicklung Tel.: +49 (0)30 769929-78 Fax: +49 (0)30 769929-12 eMail: f.wollenberg@gsp-berlin.de -- GSP Sprachtechnologie GmbH Teltowkanalstr.1, D-12247 Berlin Tel.: +49 (0)30 769929-0 Fax: +49 (0)30 769929-12 eMail: Info@gsp-berlin.de Web: http://www.gsp-berlin.de -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu