RE: Item 1) You're right. RE: Item 2) I have to turn global interrupts off when I get ready for a long call with the 17C756. That's real world. I'm just starting the coding for 16F87x and had my suspicions that I would have to turn them off when I do a long call. Guess we'll see, huh? RE: Item 3) This sounds very strange. But after rereading it a bit, it sure makes sense. Thanks and GL, Walt... -----Original Message----- From: John Gerthoffer [mailto:jgerthoffer@AAMATRIX.COM] Sent: Monday, April 17, 2000 2:06 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: Page Limit? I have recently been trying to test my code for page boundary effects. What I have found is 1) If you CALL or GOTO, make sure PCLATH is set correctly. (pagesel routine_name or movlw HIGH routine_name, movwf PCLATH). And reset PCLATH after a CALL. 2) I had to disable interrupts while operating on PCLATH. An interrupt completely screws up the program the simulator. In real life, who knows??? 3) When stuffing PCLATH and PCL to create a program branch, check for 0x100 boundary crossing. (not just page boundary). Increment PCLATH by 1 if an offset branch rolls PCL over (FFh -> 00h). Food for thought. Regards, John Gerthoffer American Auto-Matrix Export, PA -----Original Message----- From: Kieran Miller [mailto:kiermill@DTN.NTL.COM] Sent: Saturday, April 15, 2000 12:48 PM To: PICLIST@MITVMA.MIT.EDU Subject: Page Limit? Hi, I'm merrily writing code for my PIC 16F874 - and the program size is increasing fast. What happens when I reach a page boundary? Do I need to do something with PCLATH, or will the assembler flag a warning or do whatever is necessary for me? Thanks for your help, Kieran -- Visit The Northern Ireland Macintosh User Group http://welcome.to/nimug Send SMS messages via email: kmiller@sms.genie.co.uk Fax: +44-(0)870-131-9044