[Coco] hard disk performance
Gene Heskett
gene.heskett at verizon.net
Fri Sep 26 23:50:39 EDT 2008
On Friday 26 September 2008, Robert Gault wrote:
>PS.
>
>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
>exitok clrb
>exit os9 F$Exit
>
> emod
>eom equ *
> end
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.
Always something...
>--
>Coco mailing list
>Coco at maltedmedia.com
>http://five.pairlist.net/mailman/listinfo/coco
--
Cheers, Gene
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Felson's Law:
To steal ideas from one person is plagiarism; to steal from
many is research.
More information about the Coco
mailing list