mirror of
https://github.com/cc65/cc65.git
synced 2024-08-21 16:29:27 +00:00
30 lines
486 B
ArmAsm
30 lines
486 B
ArmAsm
;
|
|
; Maciej 'YTM/Elysium' Witkowiak
|
|
;
|
|
; 30.10.99, 15.07.2001
|
|
|
|
; void * FillRam (char *dest, char what, int length);
|
|
|
|
.import popa, popax
|
|
.export _FillRam
|
|
|
|
.include "jumptab.inc"
|
|
.include "geossym.inc"
|
|
|
|
_FillRam:
|
|
sta r0L
|
|
stx r0H
|
|
jsr popa
|
|
sta r2L
|
|
jsr popax
|
|
sta r1L
|
|
stx r1H
|
|
pha
|
|
txa
|
|
pha
|
|
jsr FillRam
|
|
pla
|
|
tax
|
|
pla
|
|
rts
|