piclist 2002\09\13\074914a >
Thread: Challenge 18F indirect addressing
www.piclist.com/techref/microchip/devices.htm?key=18F
face
flavicon
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
     skpnc
      incf  FSR0H,f
     movf   x,w
     movwf  INDF0

The movff saves 3 program memory words in this case!

Scott

--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-request.....spam@spam@mitvma.mit.edu


<Pine.LNX.4.44.0209130441040.28637-100000@ruckus.brouhaha.com>

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...