gnupic: Re: [gnupic] gpsim --"invalid file register" error
Subject:
Re: [gnupic] gpsim --"invalid file register" error
From:
"Scott Dattalo" ####@####.####
Date:
25 Jan 2007 13:47:05 +0000
Message-Id: <61494.71.139.36.106.1169732729.squirrel@ruckus.brouhaha.com>
I wrote:
> Now,
> it should be pointed out that the disassembled instructions in the trace
> output do not show banked instructions.
This is incorrect. What I meant to say is that the disassembly output does
not show banked *registers*. BTW, this limitation stems more from the PIC
than gpsim. PIC instructions encode only a portion of a register address.
The remaining part of the register address is derived from the "Bank
Register", which on the mid range devices are the RP0 and RP1 bits of the
Status register. Without proper context, gpsim's disassembly output can't
determine which register address a particular instruction is actually
attempting to access. I suppose that it's possible with some effort to
establish context (e.g. by examining the trace frame to determine which
register was actually accessed or by remembering which register was
accessed when the instruction was last executed), but I've thus far not
attempted to add this feature.
Sorry for any confusion.
Scott