[Coco] hard disk performance
gene.heskett at verizon.net
Fri Sep 26 23:50:39 EDT 2008
On Friday 26 September 2008, Robert Gault wrote:
>I've assumed that the limiting factor is the speed of the hard drive
>system, not megaread. The code for megaread follows
>ReadK equ 1024 1024K is 1 megabyte (modify as desired)
> mod eom,name,tylg,atrv,start,size
> org 0
>KiloBuff rmb $0400
> rmb 200 stack space
>size equ .
>name fcs /MegaRead/
> fcb edition
>start ldx #ReadK
>loop pshs x save counter
> leax KiloBuff,u point (X) to buffer
> ldy #$0400 read 1K
> clra std input
> os9 I$Read
> bcs eofchk
> puls x recover counter
> leax -1,x done yet?
> bne loop no, go get another 1K
> bra exitok yes, exit
>eofchk cmpb #E$EOF end of media?
> bne exit no, a real error
>exit os9 F$Exit
>eom equ *
I see this version of megaread uses stdin. I think I have a version that takes
the descriptor string and opens it for reading. I *think* that may be
faster. I'm logged in, maybe I can find it. Yup, it even queries you for
which drive to read. But the change in the date t syntax to date -t prevents
getting the seconds out of its display.
>Coco mailing list
>Coco at maltedmedia.com
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
To steal ideas from one person is plagiarism; to steal from
many is research.
More information about the Coco