1
0
mirror of https://github.com/cc65/cc65.git synced 2024-10-31 04:04:49 +00:00
cc65/libsrc/geos/memory/movedata.s

28 lines
474 B
ArmAsm
Raw Normal View History

;
; 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