home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tiger Disk 13
/
Tiger_Disk_013_19xx_Tiger-Crew-Disk_de_Side_A.d64
/
memfill.seq
< prev
next >
Wrap
Text File
|
2023-02-26
|
838b
|
45 lines
*= $1000
;***************************************
;* memfill-routine (w) 1994 by madrom *
;***************************************
;* fuellt beliebige speicherbereiche *
;* mit einem wert. anfangsandresse muss*
;* in anfl/anfh (250/251), endadresse *
;* muss in endl/endh (253/254) stehen *
;* der fuellwert in fwert (252) *
;* routine wird mit - jsr memfill - *
;* aufgerufen ... madrom/cream/t-c *
;***************************************
anfl = 250
anfh = 251
endl = 253
endh = 254
fwert = 252
memfill
ldy #0
mf1
lda fwert
sta (anfl),y
lda endh
cmp anfh
beq mf2
jmp mf3
mf2
lda endl
cmp anfl
bne mf3
rts
mf3
inc anfl
bne mf4
inc anfh
mf4
jmp mf1