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