default.txt 561 B

12345678910111213141516171819
  1. ;* Title: Block Copy Routines
  2. ;* Version: 1.1
  3. .include "8515def.inc"
  4. rjmp RESET ;reset handle
  5. .def flashsize=r16 ;size of block to be copied
  6. flash2ram:
  7. lpm ;get constant
  8. st Y+,r0 ;store in SRAM and increment Y-pointer
  9. adiw ZL,1 ;increment Z-pointer
  10. dec flashsize
  11. brne flash2ram ;if not end of table, loop more
  12. ret
  13. .def ramtemp =r1 ;temporary storage register
  14. .def ramsize =r16 ;size of block to be copied