]> git.sur5r.net Git - cc65/blob - libsrc/geos-common/memory/movedata.s
Moved the 'memory' files from 'geos-cbm' to 'geos-common' which are believed to work...
[cc65] / libsrc / geos-common / memory / movedata.s
1
2 ;
3 ; Maciej 'YTM/Elysium' Witkowiak
4 ;
5 ; 30.10.99, 15.07.2001
6
7 ; void* MoveData         (char* dest, char *source, int length);
8
9             .import popax
10             .export _MoveData
11
12             .include "jumptab.inc"
13             .include "geossym.inc"
14
15 _MoveData:
16             sta r2L
17             stx r2H
18             jsr popax
19             sta r0L
20             stx r0H
21             jsr popax
22             sta r1L
23             stx r1H
24             jsr MoveData
25             lda r1L             ; return dest ptr to be compatible with memmove and memcpy
26             ldx r1H
27             rts