home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crawly Crypt Collection 1
/
crawlyvol1.bin
/
program
/
compiler
/
nasm20b
/
nasm_src
/
lib
/
src
/
mover.s65
< prev
next >
Wrap
Text File
|
1993-01-19
|
921b
|
40 lines
.include #system
.include #stddef
.include #macros
; ------------------------------
; Natuerlich!'s handy dandy
; MOVER
; (c)1990 by Natuerlich!
; All Rights Reserved.
; not written for speed or
; beauty
; -----------------------------
; change these defines to
; suit your taste. Must be zero
; page though
; -----------------------------
:src = $F0 ; -> org prg
:dst = $F2 ; -> reloc prg
:pages = $F4
; ---
mover DPOKE :src,|R_START ; uppercase labels come from the
DPOKE :dst,|MEMLO
POKE :pages,>|R_END-|R_START
ldx #<|R_END-|R_START
ldy #0
:loop lda (:src),y ; nice and slow
sta (:dst),y
iny
dex
bne :loop
inc :src+1
inc :dst+1
dec :pages
bne :loop
jmp |MEMLO