own versions of some common routines, fillram and movedata equal to memset

and memcpy


git-svn-id: svn://svn.cc65.org/cc65/trunk@789 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
izydorst
2001-07-15 16:09:50 +00:00
parent 66bcf9ac4e
commit 8e97e1f4b7
14 changed files with 160 additions and 26 deletions

View File

@@ -1,19 +1,23 @@
;
; Maciej 'YTM/Alliance' Witkowiak
; Maciej 'YTM/Elysium' Witkowiak
;
; 30.10.99
; 30.10.99, 15.07.2001
; void FillRam (char what, char *dest, int length);
; void FillRam (char *dest, char what, int length);
.import DoublePop, popa
.import popa, popax
.export _FillRam
.include "../inc/jumptab.inc"
.include "../inc/geossym.inc"
_FillRam:
jsr DoublePop
sta r0L
stx r0H
jsr popa
sta r2L
jsr popax
sta r1L
stx r1H
jmp FillRam

View File

@@ -1,10 +1,10 @@
;
; Maciej 'YTM/Alliance' Witkowiak
; Maciej 'YTM/Elysium' Witkowiak
;
; 30.10.99
; 30.10.99, 15.07.2001
; void MoveData (char* source, char *dest, int length);
; void MoveData (char* dest, char *source, int length);
.import popax
.export _MoveData
@@ -16,9 +16,9 @@ _MoveData:
sta r2L
stx r2H
jsr popax
sta r1L
stx r1H
jsr popax
sta r0L
stx r0H
jsr popax
sta r1L
stx r1H
jmp MoveData