>> But do you realize that the PIC stack is not circular? When you pop a >> return address, the 'oldest' address in stack is duplicated. > > Data sheet said circular but I might have misread it. I checked, it definitely says so (at least for the 2 chips I checked). Now I clearly remember reading the 'copies oldest entry' explanation=20 somewhere, maybe in an app note. I posted about this years ago. Maybe Olin remembers, I think he was around back then. --=20 Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .