;* Title: Block Copy Routines;* Version: 1.1.include"8515def.inc"rjmp RESET ;reset handle.def flashsize=r16;size of block to be copiedflash2ram:lpm;get constantstY+,r0;store in SRAM and increment Y-pointeradiwZL,1;increment Z-pointerdec flashsize
brne flash2ram ;if not end of table, loop moreret.def ramtemp =r1;temporary storage register.def ramsize =r16;size of block to be copied