Searching \ for '[PIC]: Page management' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/microchip/devices.htm?key=pic
Search entire site for: 'Page management'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Page management'
2001\04\08@142432 by Vlad Borodavka

picon face
Hi,
Code of my program had exceeded 2K page limit so I have to
modify PCLATH (PAGESELect)before EACH goto, call
instructions. My question - is there way to minimize
quantity of 'pagesel's?
I use MPLAB+MPLINK with multiply files containing
subroutines called from main program flow. Is it possible
excplicitly to allocate code in each file (node) for
definite page (and no 2K boundary crossing inside node)?

Vladyslav Borodavka.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\04\08@152035 by Drew Vassallo

picon face
>Code of my program had exceeded 2K page limit so I have to
>modify PCLATH (PAGESELect)before EACH goto, call
>instructions. My question - is there way to minimize
>quantity of 'pagesel's?

Automatically?  I don't think so.  But then again, I might have missed
something.  If you're using a C compiler, there might be an option to
generate the required page switching calls during the compile, but I don't
believe there's anything like that in MPASM (which is what I think you said
you're using).

From what I've seen on the list, it appears that people generally attempt to
place all related code on a single page to minimize page switching.  By
separating the code in that way, you can selectively use a minimum of
PAGESEL commands before branching without getting too frustrated with
jumping pages back and forth.

I'm sure someone will have a better way, but this is just my opinion.

--Andrew
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...