removed redundant code; memset == FillRam, bzero == ClearRam with proper return values
git-svn-id: svn://svn.cc65.org/cc65/trunk@2376 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
; Maciej 'YTM/Elysium' Witkowiak
|
||||
;
|
||||
; 30.10.99
|
||||
; 30.10.99, 20.08.2003
|
||||
|
||||
; void ClearRam (char *dest, int length);
|
||||
; void * ClearRam (char *dest, int length);
|
||||
|
||||
.import DoublePop
|
||||
.export _ClearRam
|
||||
@@ -14,4 +14,12 @@
|
||||
|
||||
_ClearRam:
|
||||
jsr DoublePop
|
||||
jmp ClearRam
|
||||
pha
|
||||
txa
|
||||
pha
|
||||
jsr ClearRam
|
||||
pla
|
||||
tax
|
||||
pla
|
||||
rts
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
;
|
||||
; 30.10.99, 15.07.2001
|
||||
|
||||
; void FillRam (char *dest, char what, int length);
|
||||
; void * FillRam (char *dest, char what, int length);
|
||||
|
||||
.import popa, popax
|
||||
.export _FillRam
|
||||
@@ -20,4 +20,11 @@ _FillRam:
|
||||
jsr popax
|
||||
sta r1L
|
||||
stx r1H
|
||||
jmp FillRam
|
||||
pha
|
||||
txa
|
||||
pha
|
||||
jsr FillRam
|
||||
pla
|
||||
tax
|
||||
pla
|
||||
rts
|
||||
|
||||
Reference in New Issue
Block a user