gnupic: Re: [PATCH] CONFIG feature progress
Subject:
Re: [PATCH] CONFIG feature progress
From:
Michael Ballbach ####@####.####
Date:
19 Jan 2006 19:36:18 +0000
Message-Id: <20060119193505.GB20995@wayreth.rten.net>
I've posted a proof-of-concept level patch at:
http://wayreth.rten.net/~ballbach/gputils/
to support PIC18 style CONFIG directives. Works for my project with the
18F2455, but I've not tested it extensively. Notes:
1) Since defaults for a device are known, I fill the section with
defaults, instead of 0xff. If CONFIG is never used in the module, no
defaults are filled in. That is, using __CONFIG should not change any
behavior. The only time defauls are added is when CONFIG is seen for
the first time.
2) Instead of using 0xff where there are holes in the section, I use
0x00, since a device burned with MPLAB seems to read 0x00 in the holes
during a table read. This is instead of just omitting them altogether
from the HEX file, since this is somewhat difficult to do.
3) As in MPASM, using __CONFIG and CONFIG together generates an error.
--
Michael Ballbach, N0ZTQ
####@####.#### -- PGP KeyID: 0xA05D5555
http://www.rten.net/
[Content type application/pgp-signature not shown. Download]