2 ; Ullrich von Bassewitz, 1998-12-07, 2004-12-01
4 ; Copy the data segment from the LOAD to the RUN location
8 .import __DATA_LOAD__, __DATA_RUN__, __DATA_SIZE__
9 .importzp ptr1, ptr2, tmp1
13 lda #<__DATA_LOAD__ ; Source pointer
18 lda #<__DATA_RUN__ ; Target pointer
24 lda #>~__DATA_SIZE__ ; Use -(__DATASIZE__+1)
38 inc ptr2+1 ; Bump pointers
39 bne @L1 ; Branch always (hopefully)
41 ; Bump the high counter byte