>-----Original Message----- >From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] >On Behalf Of toftat@cowshed.8m.com >Sent: 18 October 2004 17:40 >To: piclist@mit.edu >Subject: Re: [PIC]Stepping through buffer in assembler? > > >> One advntage of FSR is that it is 8 bits so you can >indirectly address >> up to 256 bytes (in)directly, while you can only access 128 bytes >> directly without switching banks. That's why sometimes I'll do code >> like: > >So you can avoid (some of the banking) issues by using FSR? >Please say it is so as I have a buffer copy routine to write >and only a limited number of cycles to write it in (copy the >buffer between 19.2kBaud characters) this would help >eliminate two instruction bank switching. Because the FSR is 8 bits wide, you can access two banks without having to set any extra bits. On some PIC's this will be the entire memory, on others you will have access to two banks at a time, selected by the IRP bit. Regards Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= _______________________________________________ http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist