[Coco] megaread utility

Dave Philipsen dave at davebiz.com
Sun Mar 26 20:04:01 EDT 2017


Ok, not a big deal.  Just curious. I was using 'date -t; megaread; date -t' to get an idea of how much time the megaread takes.  Well, my times were about one second but, of course, the precision that 'date -t' gives is only in one second increments so I thought I'd do ten times the amount of data and then divide the result by ten to get a fairly accurate approximation of how many seconds is required for a megaread.  Anyway, I suppose I got close enough using 8192 1K blocks. 

For the 25 MHz CoCo3FPGA reading from a ramdisk it turned out to be about 1.25 seconds for a standard megaread of 1024 1K blocks.


Dave

> On Mar 26, 2017, at 2:23 PM, Robert Gault <robert.gault at att.net> wrote:
> 
> Dave Philipsen wrote:
>> I haven't looked at the source for the NitrOS9 'megaread' utility but it seems that perhaps its
>> option of specifying the number of 1K blocks to read is limited to a 5-digit number.  Can anyone
>> confirm that?
>> 
>> Dave
> 
> In the comments,
> *  01/02   2009/03/14  Bob Devries
> * Added functionality to read a number of 1K blocks as specified on the command line.
> * Command line is now: megaread #####
> * where ##### is the number of 1K blocks to read; default 1024
> 
> In the code,
> start    clra
>        clrb
>        bsr   dec2bin    read a character from command line and convert to binary
>        bsr   dec2bin
>        bsr   dec2bin
>        bsr   dec2bin
>        bsr   dec2bin
> that's five conversions.
> 
> The code looks like it could be changed so that $FFFF 1K reads could be made. In that case, you would need six passes through dec2bin and you would need error checking to prevent numbers larger than 65535 being entered.
> 
> Do you have a problem with a 5-digit limit?
> 
> Robert
> 
> 
> -- 
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco



More information about the Coco mailing list