On Mon, 29 Jul 2002, Erik Walthinsen wrote:
> On Mon, 29 Jul 2002, Scott Dattalo wrote:
>
> > That's another bug with bank selecting. I just have gotten three bug
> > reports with respect to selecting banks. (There are actually two bugs in
> > the code you sent; the other is that the bank fix-up occurs after the
> > return).
>
> I've got the latest CVS as of noon PST on the 29th, and I don't see any
> bank selection going on at all. My C code is very basic:
>
> #define _16F877
> #include "p16f877.h"
> void main(void) {
> PORTD = 0;
> TRISD = 0;
> PORTD = 0x0f;
> }
>
> which produces..: (sdcc -mpic14 -p16f877)
I tried this with the copy in CVS (~5:30 A.M. PST ) and didn't see this.
I don't recall seeing this bug with older versions. Please grab the latest
from CVS and see if the problem still exists. If it does, then you're
include file needs to be updated. You can try this one if you wish:
http://www.dattalo.com/p16f877.h
BTW, the include file has several SDCC specific pragmas that define the
processor memory map.
Scott
PS. and yes, I live in the PST time zone :)
|