[Coco] flashpak driver
Roger Taylor
operator at coco3.com
Tue Apr 7 17:12:29 EDT 2009
Boisy, I'm glancing through some of the nos9 source and noticed two
things right away in flashpak.asm that you might want to change to
greatly speed up the writes.
bsr WrByte is the only call to WrByte, meaning a lot of cycles are
wasted having the byte writer as a subroutine, unless further
expansion will add code that also calls the subroutine.
WrLoop lda ,x+ get data from buffer
bsr WrByte write that byte <--- only call to byte writer
bcs WrBlkDn if there was an error, break out
inc ,s increment offset
ldb ,s get new offset <--- This line is not needed
bne WrLoop
--
Roger Taylor
http://www.wordofthedayonline.com
More information about the Coco
mailing list