'Automatic register-bank handling (was: "Re: PIC St'
|Jason Harper <MITVMA.MIT.EDU> wrote: PICLIST
> It appears that the PIC assembers' handling of register banks simply
> sucks - the problems you're having (but not every such problem) could
> have easily been detected by a simple data flow analysis pass in the
Unfortunately, an assembler that could catch SOME bank-selection
problems -- or even "almost all" such problems -- would have only
Unless the assembler were guaranteed to catch ALL bank-selection
errors, users would be unable to trust that it was working and would
STILL have to take manual steps to ensure that their register
accesses were happening properly.
I mean... I guess I can see that it might be useful to have an
assembler that'd catch the really stupid mistakes like:
but those can usually be found by leaving all the EXISTING assembler
warnings turned on and writing macros for other-than-bank-0 register
As I've said before, I don't think I'd trust an assembler to catch
register-bank errors unless it could correctly flag the "CLRF TRISA"
in the following (highly contrived) bit of code as an error:
=== Andrew Warren - ix.netcom.comfastfwd
=== Fast Forward Engineering - Vista, California
More... (looser matching)
- Last day of these posts
- In 2000
, 2001 only
- New search...