From: Dmitry Kiryashov
; for ( i = num_of_elements; i != 0; ) { i--; b[i] = a[i]; }
movlw num_of_elements
movwf i
loop:
decf i, W
addlw a
movwf FSR ; (a+i)
movfw INDF
movwf temp
movlw (b-a)
addwf FSR, F ; (b+i)
movfw temp
movwf INDF
decfsz i, F
goto loop
Questions:
Any suggestion about how to use the methods for writing data in FLASH memory on a PIC 18F2480 and its special function for the 64 bytes block minimum requirement?+
Isaac Marino Bavaresco Says: " I wrote an assembly 'memcpy' routine for use with Hi-Tech PICC Compiler/Assembler. It was tested and work OK, but may have bugs yet. " +
See also:
| file: /Techref/microchip/memmove.htm, 1KB, , updated: 2008/10/16 12:56, local time: 2013/6/19 17:07,
184.73.7.143:LOG IN |
| ©2013 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/techref/microchip/memmove.htm"> Moving data blocks</A> |
| Did you find what you needed? |
|
o List host: MIT, Site host massmind.org, Top posters @20130619 RussellMc, IVP, alan.b.pearce, veegee, Bob Blick, John Gardner, Isaac Marino Bavaresco, Sean Breheny, John Ferrell, Carl Denk, * Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: None at this time. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to www.piclist.com! |
.