Re: Proposed addition to gpasm
Bill Freeman <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.gnupic |
|---|---|
| Message-ID | <[email protected]> |
Peter Onion writes: > On Wed, 2005-08-31 at 09:59 -0400, Bill Freeman wrote: > > I have made an implementation of a scheme to make the "302" > > messages more useful. Those are the messages that caution you to be > > certain that the bank select bits are correct whenever you reference > > an address outside of bank 0 (my experience is primarily in the mid > > range PICs). > > It sounds like this for absolute mode programming only then ? Yes, for now at least. Note that you never get "302" messages (from gpasm, anyway) in relocatable mode. It would be possible to fix things up so that absolute symbols (freg addresses) could be checked even in relocatiable mode, but that isn't done at the moment. That's more work than I want to do before finding out if there's interest in including the feature in the primary sources. Note that, at least for mid and maybe low range PICs, absolute or mostly absolute freg definitions with relocatiable code isn't so far fetched. I often have to shoe-horn in RAM requirements. And spfreg names are always absolute. (I suspect that most beginners get confused by the message for their first time when attempting to write OPTION_REG or TRISx.) Bill