gnupic: gpasm - how to get address of variable ?


Previous by date: 7 Sep 2012 21:59:37 -0000 Re: gpasm - how to get address of variable ?, Gál Zsolt
Next by date: 7 Sep 2012 21:59:37 -0000 Re: gpasm - how to get address of variable ?, Borut Ražem
Previous in thread: 7 Sep 2012 21:59:37 -0000 Re: gpasm - how to get address of variable ?, Gál Zsolt
Next in thread: 7 Sep 2012 21:59:37 -0000 Re: gpasm - how to get address of variable ?, Borut Ražem

Subject: Re: gpasm - how to get address of variable ?
From: Joe Pfeiffer ####@####.####
Date: 7 Sep 2012 21:59:37 -0000
Message-Id: <20554.28229.475556.681871@pfeifferfamily.net>

Gál Zsolt writes:
>I would like  to say about bankisel in addition. You should use it, if
>the variable ( register ) takes places, then the previous used
>variables or array.
>
>So the almost perfect solution:
>
>  bankisel   var_array
>  movlw      var_array
>  movwf      FSR
>
>and you can move data trough INDF register.

Good point -- though I believe the IRP bit doesn't need to be set
using bankisel until the actual use of the INDF register (it affects
how the indirect addressing is done, not how the address is
represented as it is moved into W and then FSR).
-- 
Joseph J. Pfeiffer, Jr., Ph.D.                 http://pfeifferfamily.net/
1440 Tierra del Sol Dr                         575.525.2764 (H)
Las Cruces, NM 88007                           575.496.3501 (C)

Previous by date: 7 Sep 2012 21:59:37 -0000 Re: gpasm - how to get address of variable ?, Gál Zsolt
Next by date: 7 Sep 2012 21:59:37 -0000 Re: gpasm - how to get address of variable ?, Borut Ražem
Previous in thread: 7 Sep 2012 21:59:37 -0000 Re: gpasm - how to get address of variable ?, Gál Zsolt
Next in thread: 7 Sep 2012 21:59:37 -0000 Re: gpasm - how to get address of variable ?, Borut Ražem


Powered by ezmlm-browse 0.20.