gnupic: gpasm Ensure bank bits are correct


Previous by date: 26 Apr 2002 17:27:01 -0000 gpasm Ensure bank bits are correct, Anthony Tekatch
Next by date: 26 Apr 2002 17:27:01 -0000 Re: gpasm Ensure bank bits are correct, Anthony Tekatch
Previous in thread: 26 Apr 2002 17:27:01 -0000 gpasm Ensure bank bits are correct, Anthony Tekatch
Next in thread: 26 Apr 2002 17:27:01 -0000 Re: gpasm Ensure bank bits are correct, Anthony Tekatch

Subject: Re: gpasm Ensure bank bits are correct
From: Scott Dattalo ####@####.####
Date: 26 Apr 2002 17:27:01 -0000
Message-Id: <Pine.LNX.4.33.0204261016230.14032-100000@ruckus.brouhaha.com>

On Fri, 26 Apr 2002, Anthony Tekatch wrote:

>
> When assembling with gpasm I get the following:
>
> init.asm:81:Message [302] Register in operand not in bank 0. Ensure bank
> bits are correct.

a trick from Andy Warren:

    movf  (some_reg ^ 0x80), w

If some_reg is in bank1, then the xor will make the msb 0 and the
assembler will be happy. If some_reg is not in bank1, then the msb gets
set and the assembler will complain - which in this case is good.


Scott


Previous by date: 26 Apr 2002 17:27:01 -0000 gpasm Ensure bank bits are correct, Anthony Tekatch
Next by date: 26 Apr 2002 17:27:01 -0000 Re: gpasm Ensure bank bits are correct, Anthony Tekatch
Previous in thread: 26 Apr 2002 17:27:01 -0000 gpasm Ensure bank bits are correct, Anthony Tekatch
Next in thread: 26 Apr 2002 17:27:01 -0000 Re: gpasm Ensure bank bits are correct, Anthony Tekatch


Powered by ezmlm-browse 0.20.