Renamed the old geos target to geos-cbm.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5343 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
27
libsrc/geos-cbm/memory/movedata.s
Normal file
27
libsrc/geos-cbm/memory/movedata.s
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Elysium' Witkowiak
|
||||
;
|
||||
; 30.10.99, 15.07.2001
|
||||
|
||||
; void* MoveData (char* dest, char *source, int length);
|
||||
|
||||
.import popax
|
||||
.export _MoveData
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
.include "../inc/geossym.inc"
|
||||
|
||||
_MoveData:
|
||||
sta r2L
|
||||
stx r2H
|
||||
jsr popax
|
||||
sta r0L
|
||||
stx r0H
|
||||
jsr popax
|
||||
sta r1L
|
||||
stx r1H
|
||||
jsr MoveData
|
||||
lda r1L ; return dest ptr to be compatible with memmove and memcpy
|
||||
ldx r1H
|
||||
rts
|
||||
Reference in New Issue
Block a user