piclist 2002\09\13\074914a >
Thread: Challenge 18F indirect addressing
face BY : Scott Dattalo email (remove spam text)

On Fri, 13 Sep 2002, Tony K|bek wrote:

{Quote hidden}

Exactly! In fact, this is the only "legitimate" use I've found for the
"movff" instruction. I suppose you can argue that "movff" doesn't affect
WREG... But it still takes two cycles (and two program memory words) just
like a 16x style move would.  However in the above snippet, if you didn't
have the movff instruction you'd be stuck with:

     lfsr   0,arr
     movf   i,w
     addwf  FSR0L,f
      incf  FSR0H,f
     movf   x,w
     movwf  INDF0

The movff saves 3 program memory words in this case!


http://www.piclist.com hint: To leave the PICList


In reply to: <8A2A45D3D18D574484CFD980CDB73A31024B4C@flmail.dns.flintab.se>
See also: www.piclist.com/techref/microchip/devices.htm?key=18F
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Challenge 18F indirect addressing

month overview.

new search...