gnupic@linuxhacker.org

gnupic@linuxhacker.org


Subject: Re: sdcc pic14 support
From: Ralf Forsberg
Date: Wed, 15 Jan 2003 12:52:11 +0100

On Tue, Jan 14, 2003 at 12:04:42PM -0500, Charles Lepple wrote:

I don't have answers to all your questions, but,

> What's the "proper" way to set the __CONFIG flags? I saw something in the
> code about assigning to address 0x2007, but I'm not really sure how to
> express that in C such that SDCC will parse it.

word at 0x2007  CONFIG = _WDT_OFF & _LVP_OFF;


> Finally, is there any way to give hints as to which bank a variable should
> be placed in?

You can specify address like this:

data at 0x111 volatile char myvar;

 / Ralf


gnupic@linuxhacker.org