Thanks Jim, I do have the extended instruction set disabled, doesn't help.
I can get close to fixing the problem by enabling mplab compatibility (--mplab-comp), but then I get "Error [113] Symbol not previously defined (ACCESS)". Is there a way to tell SDCC's assembler to include MicroChip's include file <p18f4550.inc>? Gene -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Rages Sent: Monday, July 17, 2006 5:08 PM To: sdcc-user@lists.sourceforge.net Subject: Re: [Sdcc-user] PIC18F4550 - SFR access On 7/17/06, Jim Paris <[EMAIL PROTECTED]> wrote: > > If I access any SFR above F80h, the access goes to the GPR starting at 080h, > > i.e. instead of selecting the Access Bank (a=0) the BSR is used to select > > the GPR bank (a=1). > > Do you have the extended instruction set enabled? It changes the way > the access bank works, and SDCC expects it to be disabled, IIRC. > > -jim > There is a switch for it (-y) but I doesn't work as far as I can tell. Regards, Mark [EMAIL PROTECTED] -- You think that it is a secret, but it never has been one. - fortune cookie ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user