gnupic: Named cblocks?


Previous by date: 16 Mar 2004 05:00:49 +0000 Re: Named cblocks?, Craig Franklin
Next by date: 16 Mar 2004 05:00:49 +0000 PiKdev 0.6.4 is out, Alain Gibaud
Previous in thread: 16 Mar 2004 05:00:49 +0000 Re: Named cblocks?, Craig Franklin
Next in thread: 16 Mar 2004 05:00:49 +0000 Re: Named cblocks?, Craig Franklin

Subject: Re: Named cblocks?
From: David Willmore ####@####.####
Date: 16 Mar 2004 05:00:49 +0000
Message-Id: <200403160453.i2G4rJPg020034@localhost.localdomain>

> > Shall I just put in a set of equates to 'name' my cblocks
> > or is there some common method of doing this that has not
> > occured to my sleep deprived mind?
> 
> You have to be careful with CBLOCK.  IIRC, it can cross a bank
> boundary.  So your banksel wouldn't be guaranteed to be correct.

I pretty much have one cblock per bank and I'm used to very low
level management of RAM, so I'm unlikely to get bitten by this,
but you're right, it's important that it be said.

> If you use relocatable code, data in one section is always in the same
> bank, so putting in a dummy symbol for the bank switching works.

I haven't tried that, yet, but it might be a good thing to play 
with before long.  Once I get out of the 2K word devices, I may
have actual need for it.  As it is, my code compiles faster than
PikDev can refresh the window, so there would be little benefit--
unless there is something special about relocatable code that
isn't obvious.

Thank you for the advice, Craig.

Cheers,
David

Previous by date: 16 Mar 2004 05:00:49 +0000 Re: Named cblocks?, Craig Franklin
Next by date: 16 Mar 2004 05:00:49 +0000 PiKdev 0.6.4 is out, Alain Gibaud
Previous in thread: 16 Mar 2004 05:00:49 +0000 Re: Named cblocks?, Craig Franklin
Next in thread: 16 Mar 2004 05:00:49 +0000 Re: Named cblocks?, Craig Franklin


Powered by ezmlm-browse 0.20.