Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

System going down at 1:45 this afternoon for disk crashing.


computers / comp.sys.apple2 / Re: FASTCIRC--High-speed circles for HGR graphics

SubjectAuthor
* FASTCIRC--High-speed circles for HGR graphicsMichael J. Mahon
+* Re: FASTCIRC--High-speed circles for HGR graphicsfadden
|`- Re: FASTCIRC--High-speed circles for HGR graphicsMichael J. Mahon
+* Re: FASTCIRC--High-speed circles for HGR graphicsTRS-90
|`* Re: FASTCIRC--High-speed circles for HGR graphicsOliver Schmidt
| +- Re: FASTCIRC--High-speed circles for HGR graphicsAndrew Roughan
| `* Re: FASTCIRC--High-speed circles for HGR graphicsTRS-90
|  `- Re: FASTCIRC--High-speed circles for HGR graphicsOliver Schmidt
`* Re: FASTCIRC--High-speed circles for HGR graphicsKent Dickey
 `* Re: FASTCIRC--High-speed circles for HGR graphicsMichael J. Mahon
  `* Re: FASTCIRC--High-speed circles for HGR graphicsOliver Schmidt
   `* Re: FASTCIRC--High-speed circles for HGR graphicsMichael J. Mahon
    `* Re: FASTCIRC--High-speed circles for HGR graphicsOliver Schmidt
     `* Re: FASTCIRC--High-speed circles for HGR graphicsKent Dickey
      +* Re: FASTCIRC--High-speed circles for HGR graphicsD Finnigan
      |+* Re: FASTCIRC--High-speed circles for HGR graphicsD Finnigan
      ||`* Re: FASTCIRC--High-speed circles for HGR graphicsKent Dickey
      || +* Re: FASTCIRC--High-speed circles for HGR graphicsOliver Schmidt
      || |`* Re: FASTCIRC--High-speed circles for HGR graphicsKent Dickey
      || | +- Re: FASTCIRC--High-speed circles for HGR graphicsOliver Schmidt
      || | `* Re: FASTCIRC--High-speed circles for HGR graphicsI am Rob
      || |  `* Re: FASTCIRC--High-speed circles for HGR graphicsAntoine Vignau
      || |   `* Re: FASTCIRC--High-speed circles for HGR graphicsI am Rob
      || |    `* Re: FASTCIRC--High-speed circles for HGR graphicsfadden
      || |     `* Re: FASTCIRC--High-speed circles for HGR graphicsI am Rob
      || |      `- Re: FASTCIRC--High-speed circles for HGR graphicsfadden
      || `* Re: FASTCIRC--High-speed circles for HGR graphicsD Finnigan
      ||  `* Re: FASTCIRC--High-speed circles for HGR graphicsD Finnigan
      ||   +* Re: FASTCIRC--High-speed circles for HGR graphicsOliver Schmidt
      ||   |`- Re: FASTCIRC--High-speed circles for HGR graphicsfadden
      ||   +* Re: FASTCIRC--High-speed circles for HGR graphicsKent Dickey
      ||   |+- Re: FASTCIRC--High-speed circles for HGR graphicsOliver Schmidt
      ||   |`* ProDOS sector order resultsD Finnigan
      ||   | +* Re: ProDOS sector order resultsOliver Schmidt
      ||   | |`* Re: ProDOS sector order resultsD Finnigan
      ||   | | +* Re: ProDOS sector order resultsI am Rob
      ||   | | |+- Re: ProDOS sector order resultsD Finnigan
      ||   | | |`* Re: ProDOS sector order resultsfadden
      ||   | | | `- Re: ProDOS sector order resultsfadden
      ||   | | `- Re: ProDOS sector order resultsOliver Schmidt
      ||   | `* Re: ProDOS sector order resultsDavid Schmidt
      ||   |  `- Re: ProDOS sector order resultsD Finnigan
      ||   `- Re: FASTCIRC--High-speed circles for HGR graphicsD Finnigan
      |`* Re: FASTCIRC--High-speed circles for HGR graphicsfadden
      | `- Re: FASTCIRC--High-speed circles for HGR graphicsSteve Nickolas
      `* Re: FASTCIRC--High-speed circles for HGR graphicsMichael 'AppleWin Debugger Dev'
       `* Re: FASTCIRC--High-speed circles for HGR graphicsfadden
        `* Re: FASTCIRC--High-speed circles for HGR graphicsKent Dickey
         `* Re: FASTCIRC--High-speed circles for HGR graphicsfadden
          +- Re: FASTCIRC--High-speed circles for HGR graphicsDavid Schmidt
          `* Re: FASTCIRC--High-speed circles for HGR graphicsI am Rob
           `- Re: FASTCIRC--High-speed circles for HGR graphicsfadden

Pages:123
FASTCIRC--High-speed circles for HGR graphics

<SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4835&group=comp.sys.apple2#4835

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 21 Oct 2022 07:01:44 +0000
Date: Fri, 21 Oct 2022 00:01:44 -0700
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.13.0
Newsgroups: comp.sys.apple2
Reply-To: mjmahon@aol.com
Content-Language: en-US
From: mjma...@aol.com (Michael J. Mahon)
Subject: FASTCIRC--High-speed circles for HGR graphics
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Message-ID: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com>
Lines: 26
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-hHUIeBT+gadTA7lGPxNE+cAIBMTcIoC8e+LQYC01iRuCuUGKmvuogNY9hakIQw0sXxw9kdyhOStpM3U!YunQM4kZtTiFS8kr8mQdSYegGuKDygimxEFab6qDamu3IekNaWUm+QyPkZLHMdlDaUwVK+vONBQ=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Michael J. Mahon - Fri, 21 Oct 2022 07:01 UTC

If you've ever wanted to create HGR graphics containing circles of
various sizes, you’ve probably been disappointed with the slow drawing
speed. The straightforward method using sines and cosines can take
several seconds per circle.

I’ve just added a short (374 bytes) subroutine, FASTCIRC, to my website
that draws circles in from 22 to 75 milliseconds, depending on radius.
It’s self-relocating, so you can BLOAD it anywhere convenient.

To use FASTCIRC, the center (Xlo, Xhi, Y) and the radius are POKEd into
locations 6, 7, 8, and 9 and FASTCIRC is CALLed at its load address.

My website has more complete documentation and a FASTCIRC.DSK image
containing FASTCIRC, its Merlin source, and several demo programs to
illustrate its use.

Time to have fun with circles!
--

-michael

NadaNet 3.1 for Apple II parallel computing!
Home page: http://michaeljmahon.com

"The wastebasket is our most important design
tool--and it's seriously underused."

Re: FASTCIRC--High-speed circles for HGR graphics

<7e4ec319-f840-4950-86db-2672619bc2dfn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4836&group=comp.sys.apple2#4836

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a05:620a:4398:b0:6ee:be9f:435c with SMTP id a24-20020a05620a439800b006eebe9f435cmr14019133qkp.35.1666364726705;
Fri, 21 Oct 2022 08:05:26 -0700 (PDT)
X-Received: by 2002:a05:620a:29c6:b0:6ee:cf89:40cb with SMTP id
s6-20020a05620a29c600b006eecf8940cbmr14257870qkp.107.1666364726465; Fri, 21
Oct 2022 08:05:26 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Fri, 21 Oct 2022 08:05:26 -0700 (PDT)
In-Reply-To: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com>
Injection-Info: google-groups.googlegroups.com; posting-host=24.130.68.111; posting-account=UAtoeQoAAADrX7T-MHdWWRC4Fzf0dsLP
NNTP-Posting-Host: 24.130.68.111
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7e4ec319-f840-4950-86db-2672619bc2dfn@googlegroups.com>
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
From: thefad...@gmail.com (fadden)
Injection-Date: Fri, 21 Oct 2022 15:05:26 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1551
 by: fadden - Fri, 21 Oct 2022 15:05 UTC

On Friday, October 21, 2022 at 12:01:49 AM UTC-7, Michael J. Mahon wrote:
> If you've ever wanted to create HGR graphics containing circles of
> various sizes, you’ve probably been disappointed with the slow drawing
> speed.

It's nice to know I'm not the only one. :-)

The self-relocation routine has that fun "living on the edge" feel to it. Very nice.

Re: FASTCIRC--High-speed circles for HGR graphics

<CQikFLdmESdtENcqEQdn%matthewmpower@gmail.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4837&group=comp.sys.apple2#4837

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: matthewm...@gmail.com (TRS-90)
Newsgroups: comp.sys.apple2
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
Date: Fri, 21 Oct 2022 23:44:11 GMT
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <CQikFLdmESdtENcqEQdn%matthewmpower@gmail.com>
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Injection-Info: reader01.eternal-september.org; posting-host="9d93888440173103cdc04c3b2e11fd7f";
logging-data="779889"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19BG7vboB8UUg03uiuBa6+TJ80FWKltYfc="
User-Agent: SNAP v1.2.2 (GSOS 6.0.1 (65816))
Cancel-Lock: sha1:y3AurbAHFVzHD+RVCfOZuHIEyHE=
 by: TRS-90 - Fri, 21 Oct 2022 23:44 UTC

> Time to have fun with circles!
> -michael
> Home page: http://michaeljmahon.com

Hi Michael, can I just say a big "thank you" for keeping your website http so folks like me (on a IIgs) can read your post and then go check out the website without switching to modern hardware? It adds so much atmosphere and fun to be able to do that. I even downloaded the .dsk via the IIgs, however I haven't yet figured out how to access .dsk, .po, etc... once downloaded without switching to moden hardware and making an image with CiderPress. But that's besides the point. Great website and it works on "vintage" (haha) hardware!

Matt

Re: FASTCIRC--High-speed circles for HGR graphics

<kfucnVgL4Iuc1c7-nZ2dnZfqn_GdnZ2d@giganews.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4838&group=comp.sys.apple2#4838

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!69.80.99.27.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 22 Oct 2022 01:31:45 +0000
User-Agent: NewsTap/5.5 (iPhone/iPod Touch)
Cancel-Lock: sha1:O309nFECNS/s0WOhB/SdHgufosY=
Newsgroups: comp.sys.apple2
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
Content-Type: text/plain; charset=UTF-8
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
From: mjma...@aol.com (Michael J. Mahon)
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com> <7e4ec319-f840-4950-86db-2672619bc2dfn@googlegroups.com>
Message-ID: <kfucnVgL4Iuc1c7-nZ2dnZfqn_GdnZ2d@giganews.com>
Date: Sat, 22 Oct 2022 01:31:45 +0000
Lines: 31
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-6kI0sO4PTNzOVhMucGjnG5cSONNZVNmcsXq21C/Hy4d3CyfrhZP3ojuuMcEadsTySAMUikE0JxzM8a8!bHH9SYLp25DmZKRv1H4p2Mzvxba02+XGrplbdxZB5xe/6bn2tLOXrjvPC4wypmi4BWald0+TFdtp
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Received-Bytes: 2687
 by: Michael J. Mahon - Sat, 22 Oct 2022 01:31 UTC

fadden <thefadden@gmail.com> wrote:
> On Friday, October 21, 2022 at 12:01:49 AM UTC-7, Michael J. Mahon wrote:
>> If you've ever wanted to create HGR graphics containing circles of
>> various sizes, you’ve probably been disappointed with the slow drawing
>> speed.
>
> It's nice to know I'm not the only one. :-)
>
> The self-relocation routine has that fun "living on the edge" feel to it. Very nice.
>

Thanks! I’m pretty happy with my “key byte(s)” relocation scheme. I use
it on most programs of few pages, since in a short chunk of code it’s
extremely unlikely that all 256 byte values appear (and impossible in less
than one page of code!).

I actually use a short Applesoft program to histogram the byte values in
the target program and print a list of all the unused values. It’s typical
that there are several runs of consecutive “missing” values, so it’s not
difficult to choose unique values to be used as “keys” to flag addresses
requiring relocation. Setting the assembly ORG then completes the job. ;-)

I haven’t seen this approach used by others, but I’d be surprised if it
hasn’t been.

Of course, if code can be written so that it’s location-independent, that’s
great, but if you need internal subroutines or data, relocation is
necessary.

--
-michael - NadaNet 3.1 and AppleCrate II: http://michaeljmahon.com

Re: FASTCIRC--High-speed circles for HGR graphics

<tj0d3j$27cn$1@solani.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4839&group=comp.sys.apple2#4839

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: ol....@web.de (Oliver Schmidt)
Newsgroups: comp.sys.apple2
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
Date: Sat, 22 Oct 2022 09:28:19 -0000 (UTC)
Message-ID: <tj0d3j$27cn$1@solani.org>
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com>
<CQikFLdmESdtENcqEQdn%matthewmpower@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 22 Oct 2022 09:28:19 -0000 (UTC)
Injection-Info: solani.org;
logging-data="73111"; mail-complaints-to="abuse@news.solani.org"
User-Agent: NewsTap/5.5 (iPhone/iPod Touch)
Cancel-Lock: sha1:ngsirZUlQD3gFRkfFCGlzH8chAA= sha1:z/LUx5F42j3Siq1u85hT7iLFg+U=
X-User-ID: eJwFwYEBwCAIA7CXptDSnYMg/59gAuNihRN0DCZT1VvRR5u0XDL3wrBv5vcTURXFc/pKiHgmkRF1
 by: Oliver Schmidt - Sat, 22 Oct 2022 09:28 UTC

Hi Matt,

> [...] however I haven't yet figured out how to access .dsk, .po, etc...
> once downloaded without switching to moden hardware and making an image with CiderPress.

There are (at least) these options:

- http://www.sheppyware.net/apple-ii-software/diskmaker.html

- https://archive.org/details/diskmaker8

-
https://mirrors.apple2.org.za/ground.icaen.uiowa.edu/apple8/Utils/dsk2file.info

Or bypass the image file step altogether with
https://github.com/cc65/ip65/wiki/Wget65

Regards,
Oliver

Re: FASTCIRC--High-speed circles for HGR graphics

<tj0lkh$tia3$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4840&group=comp.sys.apple2#4840

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: no_em...@invalid.invalid (Andrew Roughan)
Newsgroups: comp.sys.apple2
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
Date: Sat, 22 Oct 2022 11:53:53 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <tj0lkh$tia3$1@dont-email.me>
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com>
<CQikFLdmESdtENcqEQdn%matthewmpower@gmail.com>
<tj0d3j$27cn$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 22 Oct 2022 11:53:53 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="5886504ed0ec635b61a2f36bc2c78430";
logging-data="969027"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/xaXS8u3iacxsYW9Gvmoxw4runvbYwjSw="
User-Agent: NewsTap/5.5 (iPhone/iPod Touch)
Cancel-Lock: sha1:x4VPd480iuU/s3khywT4yaTAIhM=
sha1:8NzoZJZp6Aj4t0fH2NyfzE5HYbY=
 by: Andrew Roughan - Sat, 22 Oct 2022 11:53 UTC

Oliver Schmidt <ol.sc@web.de> wrote:
> Hi Matt,
>
>> [...] however I haven't yet figured out how to access .dsk, .po, etc...
>> once downloaded without switching to moden hardware and making an image with CiderPress.
>
> There are (at least) these options:

Have you tried MountIt ?
https://www.brutaldeluxe.fr/products/apple2gs/mountit.html

Re: FASTCIRC--High-speed circles for HGR graphics

<BTfmJTanFQbpAOdoHPan%matthewmpower@gmail.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4841&group=comp.sys.apple2#4841

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: matthewm...@gmail.com (TRS-90)
Newsgroups: comp.sys.apple2
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
Date: Sun, 23 Oct 2022 02:52:20 GMT
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <BTfmJTanFQbpAOdoHPan%matthewmpower@gmail.com>
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com> <tj0d3j$27cn$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Injection-Info: reader01.eternal-september.org; posting-host="6be29c693bca8a9e3b08379ace59dc06";
logging-data="1201516"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18RFl4LOBzZVBrgGMRkHg/RGtG3FKpz/ZQ="
User-Agent: SNAP v1.2.2 (GSOS 6.0.1 (65816))
Cancel-Lock: sha1:jiBiSDI61eWSCN77NCr7rOROQ+g=
 by: TRS-90 - Sun, 23 Oct 2022 02:52 UTC

"Oliver Schmidt" wrote:

> Hi Matt,

> There are (at least) these options:
> - http://www.sheppyware.net/apple-ii-software/diskmaker.html
> - https://archive.org/details/diskmaker8
> https://mirrors.apple2.org.za/ground.icaen.uiowa.edu/apple8/Utils/dsk2fil
> e.info
>
> Or bypass the image file step altogether with
> https://github.com/cc65/ip65/wiki/Wget65

Thank you, man, Will do. I hope comp.sys.apple2 sticks around for another 30 years. I learn so much here. Hahaha any hope for a favoites page in the 8-bit Contiki browser?

** Proudly posted from an Apple IIgs **

Re: FASTCIRC--High-speed circles for HGR graphics

<tj2u2s$3h91$1@solani.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4843&group=comp.sys.apple2#4843

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: ol....@web.de (Oliver Schmidt)
Newsgroups: comp.sys.apple2
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
Date: Sun, 23 Oct 2022 08:30:20 -0000 (UTC)
Message-ID: <tj2u2s$3h91$1@solani.org>
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com>
<tj0d3j$27cn$1@solani.org>
<BTfmJTanFQbpAOdoHPan%matthewmpower@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 23 Oct 2022 08:30:20 -0000 (UTC)
Injection-Info: solani.org;
logging-data="116001"; mail-complaints-to="abuse@news.solani.org"
User-Agent: NewsTap/5.5 (iPhone/iPod Touch)
Cancel-Lock: sha1:GCU7s43NlMAXGFEfQxkzBwVWidk= sha1:E9K3j6MGmzVHRA8J4ZYSgDGVo6U=
X-User-ID: eJwNykkBwDAIBEBLnAvISSD4l9DOe1zB6DA4zNf3RfFWCvrWzfGTdspmaZhp5T+viROCpxSlHx1ZELE=
 by: Oliver Schmidt - Sun, 23 Oct 2022 08:30 UTC

Hi Matt,
> Thank you, man, Will do.

You're welcome :-)

> I hope comp.sys.apple2 sticks around for another 30 years. I learn so much here.

Me too!

> Hahaha any hope for a favoites page in the 8-bit Contiki browser?

Not much memory left for any feature whatsoever. Maybe a prefilled start
URL (aka home page) set to http://frogfind.com

Regards,
Oliver

Re: FASTCIRC--High-speed circles for HGR graphics

<tj7q9p$1tuve$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4846&group=comp.sys.apple2#4846

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: keg...@provalid.com (Kent Dickey)
Newsgroups: comp.sys.apple2
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
Date: Tue, 25 Oct 2022 04:56:25 -0000 (UTC)
Organization: provalid.com
Lines: 29
Message-ID: <tj7q9p$1tuve$1@dont-email.me>
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com>
Injection-Date: Tue, 25 Oct 2022 04:56:25 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="719ad34142ca55885530433ad1196c88";
logging-data="2030574"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18AIGxQAcLS0wTwuURDx5JH"
Cancel-Lock: sha1:Gcp9jc3ymuGXUZGLuyiTU9lgvXA=
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: kegs@provalid.com (Kent Dickey)
 by: Kent Dickey - Tue, 25 Oct 2022 04:56 UTC

In article <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com>,
Michael J. Mahon <mjmahon@aol.com> wrote:
>If you've ever wanted to create HGR graphics containing circles of
>various sizes, you’ve probably been disappointed with the slow drawing
>speed. The straightforward method using sines and cosines can take
>several seconds per circle.
>
>I’ve just added a short (374 bytes) subroutine, FASTCIRC, to my website
>that draws circles in from 22 to 75 milliseconds, depending on radius.
>It’s self-relocating, so you can BLOAD it anywhere convenient.
>
>To use FASTCIRC, the center (Xlo, Xhi, Y) and the radius are POKEd into
>locations 6, 7, 8, and 9 and FASTCIRC is CALLed at its load address.
>
>My website has more complete documentation and a FASTCIRC.DSK image
>containing FASTCIRC, its Merlin source, and several demo programs to
>illustrate its use.
>
>Time to have fun with circles!
>--
>
>-michael

Very cool little program, it draws fast circles.

The FASTCIRC.dsk image is actually in ProDOS order. Could you rename
the image to FASTCIRC.po?

Kent

Re: FASTCIRC--High-speed circles for HGR graphics

<qYqcnYsMhL1FR8X-nZ2dnZfqnPqdnZ2d@giganews.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4855&group=comp.sys.apple2#4855

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 26 Oct 2022 06:59:36 +0000
User-Agent: NewsTap/5.5 (iPhone/iPod Touch)
Cancel-Lock: sha1:O309nFECNS/s0WOhB/SdHgufosY=
Newsgroups: comp.sys.apple2
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
Content-Type: text/plain; charset=UTF-8
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
From: mjma...@aol.com (Michael J. Mahon)
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com>
<tj7q9p$1tuve$1@dont-email.me>
Message-ID: <qYqcnYsMhL1FR8X-nZ2dnZfqnPqdnZ2d@giganews.com>
Date: Wed, 26 Oct 2022 06:59:36 +0000
Lines: 77
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-tmmIdCfbicMWSROIvTuQTsasSlCPCo5T6J0qDhRMoCGh2qAmNqFIAvukTQM6y4GbHjsoQRXihqp74Z/!gUJQUQ1BcOCOByF5cqh8b+A3Iv344Wd9O+7lujHhe8oVgrY6gdHplGzTwU9wLgdi2nIHpxyYINw=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Michael J. Mahon - Wed, 26 Oct 2022 06:59 UTC

Kent Dickey <kegs@provalid.com> wrote:
> In article <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com>,
> Michael J. Mahon <mjmahon@aol.com> wrote:
>> If you've ever wanted to create HGR graphics containing circles of
>> various sizes, you’ve probably been disappointed with the slow drawing
>> speed. The straightforward method using sines and cosines can take
>> several seconds per circle.
>>
>> I’ve just added a short (374 bytes) subroutine, FASTCIRC, to my website
>> that draws circles in from 22 to 75 milliseconds, depending on radius.
>> It’s self-relocating, so you can BLOAD it anywhere convenient.
>>
>> To use FASTCIRC, the center (Xlo, Xhi, Y) and the radius are POKEd into
>> locations 6, 7, 8, and 9 and FASTCIRC is CALLed at its load address.
>>
>> My website has more complete documentation and a FASTCIRC.DSK image
>> containing FASTCIRC, its Merlin source, and several demo programs to
>> illustrate its use.
>>
>> Time to have fun with circles!
>> --
>>
>> -michael
>
> Very cool little program, it draws fast circles.
>
> The FASTCIRC.dsk image is actually in ProDOS order. Could you rename
> the image to FASTCIRC.po?
>
> Kent
>

Hi, Kent!

I’m glad you like it—it was fun to write!

Interesting that you should ask about the disk image. There are so many
disk images “out there”, many made before .po existed, that almost all
emulators disregard the image name and just examine the first sectors to
determine how to treat it. As a result, I’ve adopted the convention of
naming all 5.25” images .dsk!

I’m fact, I think all the disk images on my site are ProDOS images, but all
are named .dsk—and (so far) you’re the only one to mention it! ;-)

I’m willing to rename it, but then it would be the “inconsistent” one, or I
could change them all (which would be a pain since I refer to them by name
in several places in the text). I figure that if I name one image .po
people will assume that I consider the suffix meaningful, and all the other
images are *not* ProDOS! ;-)

Frankly, I don’t think the Apple II world will ever get the naming of all
the images consistent with their content. (And we haven’t even gotten to
disks that are neither DOS nor ProDOS.) I don’t think the rampant
inconsistency is a source of much confusion, either. Certainly you weren’t
confused. ;-)

Put another way, any of us who deal with disk images or write programs that
deal with them, have already adapted to “misnamed” images and learned to
cope with them, automatically or manually. That’s a useful skill in the
Apple II world. And, frankly, having a single suffix about which no
assumptions should be made is more consistent than trying to retroactively
impose a new standard which will never apply universally.

I originally tried posting .sdk ShrinkIt images, which are universal for
recreating physical disks, but received several inquiries about what they
were and why didn’t they work with emulators! So I switched several years
ago to simply posting disk (.dsk) images. Maybe .woz images will finally
become universal.

“The great thing about standards is that there are so many to choose from.”
And our “standard” solution is to create yet another “to rule them all”.

If my reasoning is faulty, please straighten me out. ;-)

--
-michael - NadaNet 3.1 and AppleCrate II: http://michaeljmahon.com

Re: FASTCIRC--High-speed circles for HGR graphics

<tjanjp$20hc$1@solani.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4856&group=comp.sys.apple2#4856

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: ol....@web.de (Oliver Schmidt)
Newsgroups: comp.sys.apple2
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
Date: Wed, 26 Oct 2022 07:28:57 -0000 (UTC)
Message-ID: <tjanjp$20hc$1@solani.org>
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com>
<tj7q9p$1tuve$1@dont-email.me>
<qYqcnYsMhL1FR8X-nZ2dnZfqnPqdnZ2d@giganews.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Oct 2022 07:28:57 -0000 (UTC)
Injection-Info: solani.org;
logging-data="66092"; mail-complaints-to="abuse@news.solani.org"
User-Agent: NewsTap/5.5 (iPhone/iPod Touch)
Cancel-Lock: sha1:BnsElbcd3h8N/aepaNbF1qZ1qDg= sha1:yvfgdrtU4ChZ0P4oN5PS0aDn+TA=
X-User-ID: eJwNwoERACEIA7CVBG2RcR60+4/gX4JJY8ciuCCohsrJwe7Irw72drPbQ/sWEGZq5c8VOQ8eJR8RdA==
 by: Oliver Schmidt - Wed, 26 Oct 2022 07:28 UTC

Hi,

> Interesting that you should ask about the disk image. [...]

If there is any "standard" at all, then it's this:

..do: DOS3.3 order
..po: ProDOS8 order
..dsk: Go figure

Regards,
Oliver

Re: FASTCIRC--High-speed circles for HGR graphics

<q-6dnXK_JO7F7cb-nZ2dnZfqnPGdnZ2d@giganews.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4860&group=comp.sys.apple2#4860

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 28 Oct 2022 06:02:00 +0000
User-Agent: NewsTap/5.5 (iPhone/iPod Touch)
Cancel-Lock: sha1:O309nFECNS/s0WOhB/SdHgufosY=
Newsgroups: comp.sys.apple2
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
Content-Type: text/plain; charset=UTF-8
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
From: mjma...@aol.com (Michael J. Mahon)
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com>
<tj7q9p$1tuve$1@dont-email.me>
<qYqcnYsMhL1FR8X-nZ2dnZfqnPqdnZ2d@giganews.com>
<tjanjp$20hc$1@solani.org>
Message-ID: <q-6dnXK_JO7F7cb-nZ2dnZfqnPGdnZ2d@giganews.com>
Date: Fri, 28 Oct 2022 06:02:00 +0000
Lines: 23
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-Z4v+rCJGHvYc4UbUlgsc60wBlnnTSuWsKOCFz6lI9vTWvLH6x6bI64vXCxWSsyoRc6pjeMCN6IYdUka!1ukyvXdBuRopcs0Oe856PCF8ImnsPRgZTbcfI9TKErdixrEdAS+z7pAOfWn4g+TbHC8BcfffbBw=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Michael J. Mahon - Fri, 28 Oct 2022 06:02 UTC

Oliver Schmidt <ol.sc@web.de> wrote:
> Hi,
>
>> Interesting that you should ask about the disk image. [...]
>
> If there is any "standard" at all, then it's this:
>
> .do: DOS3.3 order
> .po: ProDOS8 order
> .dsk: Go figure
>
> Regards,
> Oliver
>

Fair enough, though the Apple II world seems to have lots of other image
types, many of which aim(ed) to be more “universal”.

But I stand corrected, and will review my site and adopt the “standard” as
I have the time.

--
-michael - NadaNet 3.1 and AppleCrate II: http://michaeljmahon.com

Re: FASTCIRC--High-speed circles for HGR graphics

<tjgdh7$4qa7$1@solani.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4861&group=comp.sys.apple2#4861

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!news.nntp4.net!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: ol....@web.de (Oliver Schmidt)
Newsgroups: comp.sys.apple2
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
Date: Fri, 28 Oct 2022 11:13:43 -0000 (UTC)
Message-ID: <tjgdh7$4qa7$1@solani.org>
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com>
<tj7q9p$1tuve$1@dont-email.me>
<qYqcnYsMhL1FR8X-nZ2dnZfqnPqdnZ2d@giganews.com>
<tjanjp$20hc$1@solani.org>
<q-6dnXK_JO7F7cb-nZ2dnZfqnPGdnZ2d@giganews.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 28 Oct 2022 11:13:43 -0000 (UTC)
Injection-Info: solani.org;
logging-data="158023"; mail-complaints-to="abuse@news.solani.org"
User-Agent: NewsTap/5.5 (iPhone/iPod Touch)
Cancel-Lock: sha1:wN94BssE2A7+2Lc6fp55Rqfr2vA= sha1:uM01wJDgiUMypofoM9w4YYJ466E=
X-User-ID: eJwFwQcBwEAIBDBLUI4lh/X+JTRRMbZxmBr06UOD5vUEhPooWcWTCx7btbkoX0Oabn8bdz8dYBFo
 by: Oliver Schmidt - Fri, 28 Oct 2022 11:13 UTC

Hi Michael,

>> If there is any "standard" at all, then it's this:
>>
>> .do: DOS3.3 order
>> .po: ProDOS8 order
>> .dsk: Go figure

> But I stand corrected, and will review my site and adopt the “standard” as
> I have the time.

There seems to be a misunderstanding. I do NOT see an issue with .dsk files
having ProDOS ordering!

..do and .po both imply a statement regarding their ordering but .dsk does
NOT imply any ordering - and therefore a .dsk can per definition never have
a wrong ordering.

At least that is my POV which I wanted to express with my last posting.

Regards,
Oliver

Re: FASTCIRC--High-speed circles for HGR graphics

<tjh4a6$358ad$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4862&group=comp.sys.apple2#4862

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: keg...@provalid.com (Kent Dickey)
Newsgroups: comp.sys.apple2
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
Date: Fri, 28 Oct 2022 17:42:30 -0000 (UTC)
Organization: provalid.com
Lines: 62
Message-ID: <tjh4a6$358ad$1@dont-email.me>
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com> <tjanjp$20hc$1@solani.org> <q-6dnXK_JO7F7cb-nZ2dnZfqnPGdnZ2d@giganews.com> <tjgdh7$4qa7$1@solani.org>
Injection-Date: Fri, 28 Oct 2022 17:42:30 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="2a4dc5dde4e34aee23ee2938b200fecc";
logging-data="3318093"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/mtUYP5KsQ+9gMBHuLbKIj"
Cancel-Lock: sha1:3w6d4A9+U7SWfECaXC7kao/9U/Q=
Originator: kegs@provalid.com (Kent Dickey)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
 by: Kent Dickey - Fri, 28 Oct 2022 17:42 UTC

In article <tjgdh7$4qa7$1@solani.org>, Oliver Schmidt <ol.sc@web.de> wrote:
>Hi Michael,
>
>>> If there is any "standard" at all, then it's this:
>>>
>>> .do: DOS3.3 order
>>> .po: ProDOS8 order
>>> .dsk: Go figure
>
>> But I stand corrected, and will review my site and adopt the “standard” as
>> I have the time.
>
>There seems to be a misunderstanding. I do NOT see an issue with .dsk files
>having ProDOS ordering!
>
>.do and .po both imply a statement regarding their ordering but .dsk does
>NOT imply any ordering - and therefore a .dsk can per definition never have
>a wrong ordering.
>
>At least that is my POV which I wanted to express with my last posting.
>
>Regards,
>Oliver

The two main problems with .dsk being "Go figure" is:

1) It makes emulators harder to write. An Apple II emulator is pretty easy
to get started with, and my guess is there are at least 20 freely
available. But: needing to auto-detect .dsk can be quite complex to do well,
and it's one of many features that emulators seem to need that raises the bar
to get new emulators.

2) It's actually not possible to detect PO or DO for an arbitrary .dsk
image. Let me see your code you're using to auto-detect, and I can
create an image which it will fail on. And many games have no OS, so there's
no great way to detect PO or DO of these images.

I think AppleWin's detection algorithm for .dsk is:

- Detect .DO order first. See if the link pointers on Track $11 look
like a DOS 3.3 catalog track for all sectors 0-14, looking at byte
+$02 in each sector. If it is, it's .DO. Then look to see if
blocks 2,3,4,5 on track $00 look like they have the ProDOS links
in the first 4 bytes of each block look valid for DOS 3.3 order.
If so, it's .DO. Otherwise, it's MAYBE .DO, which will be the
choice if nothing else matches.

- Detect .PO order next. Checks DOS 3.3 catalog track first, but only checks
some of the sectors (I'm not sure why, probably a trick of sector
numbers). If it looks valid, it's .PO. Then check blocks
2,3,4,5 for the ProDOS links in the first 4 bytes. If it
matches, it's PO order.

- Anything not detected defaults to .DO order

Note, this can be confused by a file on a ProDOS image in ProDOS order
that is on track $11 (blocks 136-151) and matches the DOS 3.3 pattern it's
looking for. It would be better if AppleWin checked ProDOS directory patterns
first when considering ProDOS order, to help avoid this confusion. And I'm
not picking on AppleWin, it just is the easiest source for me to look at.

Kent

Re: FASTCIRC--High-speed circles for HGR graphics

<dog_cow-1666984897@macgui.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4863&group=comp.sys.apple2#4863

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dog_...@macgui.com (D Finnigan)
Newsgroups: comp.sys.apple2
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
Date: Fri, 28 Oct 2022 19:21:38 -0000 (UTC)
Organization: Mac GUI
Lines: 17
Message-ID: <dog_cow-1666984897@macgui.com>
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com> <tjanjp$20hc$1@solani.org> <q-6dnXK_JO7F7cb-nZ2dnZfqnPGdnZ2d@giganews.com> <tjgdh7$4qa7$1@solani.org> <tjh4a6$358ad$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 28 Oct 2022 19:21:38 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="c7f767298cadc6da6112883c952a4ea7";
logging-data="3332511"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18cR6zlRFGh/xSt6+F/l99Q"
User-Agent: Mac GUI Usenet
Cancel-Lock: sha1:uvZiKMKGdptuLYeODePY749XvYg=
In-Reply-To: <tjh4a6$358ad$1@dont-email.me>
 by: D Finnigan - Fri, 28 Oct 2022 19:21 UTC

Kent Dickey wrote:
>
> 2) It's actually not possible to detect PO or DO for an arbitrary .dsk
> image. Let me see your code you're using to auto-detect, and I can
> create an image which it will fail on.

But that's not the criteria is it? We don't need to write code that can
detect any arbitrary image which you create solely for the purpose of
failing said code.

The set of all Apple II disks in existence is finite.

--
]DF$
The New Apple II User's Guide:
https://macgui.com/newa2guide/

Re: FASTCIRC--High-speed circles for HGR graphics

<dog_cow-1666985012@macgui.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4864&group=comp.sys.apple2#4864

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dog_...@macgui.com (D Finnigan)
Newsgroups: comp.sys.apple2
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
Date: Fri, 28 Oct 2022 19:23:33 -0000 (UTC)
Organization: Mac GUI
Lines: 25
Message-ID: <dog_cow-1666985012@macgui.com>
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com> <tjanjp$20hc$1@solani.org> <q-6dnXK_JO7F7cb-nZ2dnZfqnPGdnZ2d@giganews.com> <tjgdh7$4qa7$1@solani.org> <tjh4a6$358ad$1@dont-email.me> <dog_cow-1666984897@macgui.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 28 Oct 2022 19:23:33 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="c7f767298cadc6da6112883c952a4ea7";
logging-data="3332698"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Gof0dL2enoE2HkElzGC6H"
User-Agent: Mac GUI Usenet
Cancel-Lock: sha1:dJ8J6EuUCLCdZFg3U2tz+wWsEQ4=
In-Reply-To: <dog_cow-1666984897@macgui.com>
 by: D Finnigan - Fri, 28 Oct 2022 19:23 UTC

D Finnigan wrote:
> Kent Dickey wrote:
>>
>> 2) It's actually not possible to detect PO or DO for an arbitrary .dsk
>> image. Let me see your code you're using to auto-detect, and I can
>> create an image which it will fail on.
>
> But that's not the criteria is it? We don't need to write code that can
> detect any arbitrary image which you create solely for the purpose of
> failing said code.
>
> The set of all Apple II disks in existence is finite.
>

When I wrote and tested my Apple II disk format detection code for the Mac
GUI Vault web site, I tested it against however many thousand disk images I
had in the Apple II collection.

A finite set.

--
]DF$
The New Apple II User's Guide:
https://macgui.com/newa2guide/

Re: FASTCIRC--High-speed circles for HGR graphics

<ae07420c-3d74-462c-b3f4-6d4b6b6ba250n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4865&group=comp.sys.apple2#4865

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a05:620a:24c9:b0:6ee:d791:9f84 with SMTP id m9-20020a05620a24c900b006eed7919f84mr3263285qkn.490.1667054820465;
Sat, 29 Oct 2022 07:47:00 -0700 (PDT)
X-Received: by 2002:a37:48c:0:b0:6f8:70d5:9a41 with SMTP id
134-20020a37048c000000b006f870d59a41mr3210450qke.676.1667054820285; Sat, 29
Oct 2022 07:47:00 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Sat, 29 Oct 2022 07:47:00 -0700 (PDT)
In-Reply-To: <dog_cow-1666984897@macgui.com>
Injection-Info: google-groups.googlegroups.com; posting-host=24.130.68.111; posting-account=UAtoeQoAAADrX7T-MHdWWRC4Fzf0dsLP
NNTP-Posting-Host: 24.130.68.111
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com>
<tjanjp$20hc$1@solani.org> <q-6dnXK_JO7F7cb-nZ2dnZfqnPGdnZ2d@giganews.com>
<tjgdh7$4qa7$1@solani.org> <tjh4a6$358ad$1@dont-email.me> <dog_cow-1666984897@macgui.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ae07420c-3d74-462c-b3f4-6d4b6b6ba250n@googlegroups.com>
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
From: thefad...@gmail.com (fadden)
Injection-Date: Sat, 29 Oct 2022 14:47:00 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2071
 by: fadden - Sat, 29 Oct 2022 14:47 UTC

On Friday, October 28, 2022 at 12:21:40 PM UTC-7, D Finnigan wrote:
> But that's not the criteria is it? We don't need to write code that can
> detect any arbitrary image which you create solely for the purpose of
> failing said code.
>
> The set of all Apple II disks in existence is finite.

Even if your auto-detection succeeds on 100% of all known DOS and ProDOS (and Pascal and CP/M) disks, you will be unable to auto-detect the layout of disks with a customized operating system, of which there are many. I believe most ".dsk" images are DOS order, which means the odds of success are > 50% on a blind guess... but why guess at all, when giving the image the correct filename extension removes the ambiguity?

Re: FASTCIRC--High-speed circles for HGR graphics

<f6cd4810-aa80-4c7d-8428-924d84b88042n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4866&group=comp.sys.apple2#4866

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:ac8:5aca:0:b0:3a5:73a:1aa5 with SMTP id d10-20020ac85aca000000b003a5073a1aa5mr4270266qtd.579.1667063857349;
Sat, 29 Oct 2022 10:17:37 -0700 (PDT)
X-Received: by 2002:a05:620a:74e:b0:6e5:7560:26ee with SMTP id
i14-20020a05620a074e00b006e5756026eemr3570118qki.242.1667063857183; Sat, 29
Oct 2022 10:17:37 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Sat, 29 Oct 2022 10:17:36 -0700 (PDT)
In-Reply-To: <tjh4a6$358ad$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:600:c500:84f0:f963:886a:e8cf:206c;
posting-account=9Dd-GgoAAAAjVgCPcBurQ6c4EXW6Wi8v
NNTP-Posting-Host: 2601:600:c500:84f0:f963:886a:e8cf:206c
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com>
<tjanjp$20hc$1@solani.org> <q-6dnXK_JO7F7cb-nZ2dnZfqnPGdnZ2d@giganews.com>
<tjgdh7$4qa7$1@solani.org> <tjh4a6$358ad$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f6cd4810-aa80-4c7d-8428-924d84b88042n@googlegroups.com>
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
From: michael....@gmail.com (Michael 'AppleWin Debugger Dev')
Injection-Date: Sat, 29 Oct 2022 17:17:37 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3499
 by: Michael 'AppleW - Sat, 29 Oct 2022 17:17 UTC

On Friday, October 28, 2022 at 10:42:32 AM UTC-7, Kent Dickey wrote:

> I think AppleWin's detection algorithm for .dsk is:
> - Detect .DO order first.
> - Detect .PO order next.
> - Anything not detected defaults to .DO order

Yes, that's correct. CDiskImageHelper::Detect() runs through the supported disk types (initialized in the CDiskImageHelper::CDiskImageHelper() ctor) calling each Disk Type's Detect() function.
i.e.
CDoImage::Detect()
CPoImage::Detect()
etc.

> Note, this can be confused by a file on a ProDOS image in ProDOS order
> that is on track $11 (blocks 136-151) and matches the DOS 3.3 pattern it's
> looking for. It would be better if AppleWin checked ProDOS directory patterns
> first when considering ProDOS order, to help avoid this confusion. And I'm
> not picking on AppleWin, it just is the easiest source for me to look at.

Tom (or 4am or maybe qkumba) would know better then me but I don't believe defaulting to ProDOS sector order is a good idea for the (historical) reasons Andy mentioned.

Ideally, someone would do an in-depth analysis of the thousands of images and verify this assumption. In the 80's the number of DOS formatted disks dwarfed the ProDOS format. My gut feeling is that ProDOS didn't really take off in popularity until well into the 2000's when emulators made it trivial to switch. I would also say qkumba converting games to ProDOS also had an impact. And probably John Brooks excellent work that allowed newer version of ProDOS to run on 6502s.

Given the fact that it is not possible to write a 100% fool proof system there will always be edge cases that fail. Whoever is making the initial disk image "should" be properly tagging the disk format. But alas not everyone takes the same pride so we have some (many?) disks that aren't properly tagged and as such need to guess.

Regardless, please open an AppleWin issue so the rest of the team can mull this over and see if it is time to auto-detect a ProDOS volume directory first. Thanks.

Michael

Re: FASTCIRC--High-speed circles for HGR graphics

<tjjsl8$3kfu6$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4867&group=comp.sys.apple2#4867

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!paganini.bofh.team!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: keg...@provalid.com (Kent Dickey)
Newsgroups: comp.sys.apple2
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
Date: Sat, 29 Oct 2022 18:50:16 -0000 (UTC)
Organization: provalid.com
Lines: 51
Message-ID: <tjjsl8$3kfu6$1@dont-email.me>
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com> <tjh4a6$358ad$1@dont-email.me> <dog_cow-1666984897@macgui.com> <dog_cow-1666985012@macgui.com>
Injection-Date: Sat, 29 Oct 2022 18:50:16 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="4c94a801ee71cbaeee31bb3c34209f56";
logging-data="3817414"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18A6LRV7obV62SM3K10wYtb"
Cancel-Lock: sha1:AYUOWgjvP4mc1gPagMhmFcrTwvY=
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: kegs@provalid.com (Kent Dickey)
 by: Kent Dickey - Sat, 29 Oct 2022 18:50 UTC

In article <dog_cow-1666985012@macgui.com>,
D Finnigan <dog_cow@macgui.com> wrote:
>D Finnigan wrote:
>> Kent Dickey wrote:
>>>
>>> 2) It's actually not possible to detect PO or DO for an arbitrary .dsk
>>> image. Let me see your code you're using to auto-detect, and I can
>>> create an image which it will fail on.
>>
>> But that's not the criteria is it? We don't need to write code that can
>> detect any arbitrary image which you create solely for the purpose of
>> failing said code.
>>
>> The set of all Apple II disks in existence is finite.
>>
>
>When I wrote and tested my Apple II disk format detection code for the Mac
>GUI Vault web site, I tested it against however many thousand disk images I
>had in the Apple II collection.
>
>A finite set.
>
>--
>]DF$
>The New Apple II User's Guide:
>https://macgui.com/newa2guide/

Can you share some of this information? Do you know roughly what is the
percentage of .dsk images that are in ProDOS order? I do know the biggest
irony is DOS 3.3 Master.dsk on Asimov was in ProDOS order.

I think what you're saying is, if someone wants to throw together an Apple II
emulator (say, written in whatever new language is hot this year), before
releasing it they need to:

- Write .dsk auto-detect code. As far as I know, my description of AppleWin's
algorithm is the first public documentation of .dsk sector order
detection. Otherwise, they would need to do a bunch of research to
decide what to do. Note: other disk formats other than DOS 3.3 and
ProDOS are not covered, such as Pascal.

- Download every Apple II .dsk image available on the web.
How should I go about doing this? I am unable to see how to download
all Apple II files from macgui.com, can you provide some help?

- Test their auto-detect code and make sure they don't make any mistakes.

This seems like a pretty high bar, and I'm not sure any existing emulator
meets this requirement.

Kent

Re: FASTCIRC--High-speed circles for HGR graphics

<5cdb9ecc-d234-4fe0-8d26-ff8de4c4fa5bn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4869&group=comp.sys.apple2#4869

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a05:6214:20c1:b0:4b9:f285:de7e with SMTP id 1-20020a05621420c100b004b9f285de7emr5303166qve.14.1667084141614;
Sat, 29 Oct 2022 15:55:41 -0700 (PDT)
X-Received: by 2002:a05:620a:318b:b0:6ef:1a8e:bb3b with SMTP id
bi11-20020a05620a318b00b006ef1a8ebb3bmr4365486qkb.248.1667084141408; Sat, 29
Oct 2022 15:55:41 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Sat, 29 Oct 2022 15:55:41 -0700 (PDT)
In-Reply-To: <f6cd4810-aa80-4c7d-8428-924d84b88042n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=24.130.68.111; posting-account=UAtoeQoAAADrX7T-MHdWWRC4Fzf0dsLP
NNTP-Posting-Host: 24.130.68.111
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com>
<tjanjp$20hc$1@solani.org> <q-6dnXK_JO7F7cb-nZ2dnZfqnPGdnZ2d@giganews.com>
<tjgdh7$4qa7$1@solani.org> <tjh4a6$358ad$1@dont-email.me> <f6cd4810-aa80-4c7d-8428-924d84b88042n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5cdb9ecc-d234-4fe0-8d26-ff8de4c4fa5bn@googlegroups.com>
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
From: thefad...@gmail.com (fadden)
Injection-Date: Sat, 29 Oct 2022 22:55:41 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2988
 by: fadden - Sat, 29 Oct 2022 22:55 UTC

On Saturday, October 29, 2022 at 10:17:38 AM UTC-7, Michael 'AppleWin Debugger Dev' wrote:
> My gut feeling is that ProDOS didn't really take off in popularity until well into the 2000's when emulators made it trivial to switch.

Early emulators assumed all non-nibble disk images were in DOS order, because that's what the disk transfer utilities available back then used.

I suspect that what propelled ProDOS-ordered images was the use of ShrinkIt to compress disks, and utilities like NuLib that would unpack them into a ProDOS-ordered file. When using that approach, you'd need to use a second utility to reorder the sectors to DOS order so the image would be accepted by the emulator. Support for both DOS and ProDOS ordering in emulators came later, and I don't think any emulators used auto-detection until CiderPress started doing it (2003).

The ".2img" format was designed to resolve the ambiguity once and for all, but it never really took off.

One of my tests for CiderPress is to run MDC (Multi-Disk Catalog) on a partial mirror of asimov. (I occasionally update a copy here: https://faddensoftware.com/ .) One could instrument MDC to report the number of ambiguous / mis-labeled / unrecognizable images there are, were one sufficiently interested in doing that, but I'm not sure this discussion is really hampered by a lack of data. (FWIW, a simple grep reveals there are 10,411 disk image files with recognizable filesystems named "*.dsk" in my data set, though some of them are larger than 140KB and hence unambiguously ProDOS-ordered.)

Re: FASTCIRC--High-speed circles for HGR graphics

<alpine.DEB.2.21.2210292339450.20420@sd-119843.dedibox.fr>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4870&group=comp.sys.apple2#4870

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: usots...@buric.co (Steve Nickolas)
Newsgroups: comp.sys.apple2
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
Date: Sat, 29 Oct 2022 23:40:58 -0400
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <alpine.DEB.2.21.2210292339450.20420@sd-119843.dedibox.fr>
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com> <tjanjp$20hc$1@solani.org> <q-6dnXK_JO7F7cb-nZ2dnZfqnPGdnZ2d@giganews.com> <tjgdh7$4qa7$1@solani.org> <tjh4a6$358ad$1@dont-email.me> <dog_cow-1666984897@macgui.com>
<ae07420c-3d74-462c-b3f4-6d4b6b6ba250n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
Injection-Info: reader01.eternal-september.org; posting-host="2b57d51f7751d790bfd2e34cdba78afe";
logging-data="4152581"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19uvnHCddSHZu7fnapF/lGP1tc4UUlW+Ps="
User-Agent: Alpine 2.21 (DEB 202 2017-01-01)
Cancel-Lock: sha1:8HTRXJI63zdhYsjMHgq6slUOa1s=
X-X-Sender: mary@sd-119843.dedibox.fr
In-Reply-To: <ae07420c-3d74-462c-b3f4-6d4b6b6ba250n@googlegroups.com>
 by: Steve Nickolas - Sun, 30 Oct 2022 03:40 UTC

On Sat, 29 Oct 2022, fadden wrote:

> On Friday, October 28, 2022 at 12:21:40 PM UTC-7, D Finnigan wrote:
>> But that's not the criteria is it? We don't need to write code that can
>> detect any arbitrary image which you create solely for the purpose of
>> failing said code.
>>
>> The set of all Apple II disks in existence is finite.
>
> Even if your auto-detection succeeds on 100% of all known DOS and ProDOS
> (and Pascal and CP/M) disks, you will be unable to auto-detect the
> layout of disks with a customized operating system, of which there are
> many. I believe most ".dsk" images are DOS order, which means the odds
> of success are > 50% on a blind guess... but why guess at all, when
> giving the image the correct filename extension removes the ambiguity?
>

I consider .DSK to mean DOS order, and if a ProDOS order file is given the
..DSK extension I consider it a mistake.

But having the option to override on open is nice.

-uso.

Re: FASTCIRC--High-speed circles for HGR graphics

<tjlob2$6u0v$1@solani.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4872&group=comp.sys.apple2#4872

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: ol....@web.de (Oliver Schmidt)
Newsgroups: comp.sys.apple2
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
Date: Sun, 30 Oct 2022 11:48:50 GMT
Message-ID: <tjlob2$6u0v$1@solani.org>
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com> <tjh4a6$358ad$1@dont-email.me> <dog_cow-1666984897@macgui.com> <dog_cow-1666985012@macgui.com> <tjjsl8$3kfu6$1@dont-email.me>
Injection-Date: Sun, 30 Oct 2022 11:48:50 -0000 (UTC)
Injection-Info: solani.org;
logging-data="227359"; mail-complaints-to="abuse@news.solani.org"
Cancel-Lock: sha1:KRABUydM1CaIvZq6ce5sbVOw+AA=
X-Newsreader: Forte Free Agent 1.21/32.243
X-User-ID: eJwNxsERACAIA7CVRKHAOD3A/UfQyyd2IChXGNTuV2BLYGHqh+3JFbEnJil1oa4DSh7vYfABKCsRmw==
 by: Oliver Schmidt - Sun, 30 Oct 2022 11:48 UTC

Hi Kent,

It seems to me that your topic is by now rather far away from where we
(or at least I) started.

But let me first try to avoid potential misunderstandings:

1. Is it great that .DSK images are often DOS3.3 and often ProODS
ordered? No.

Personal note: If I could decide from scratch, I'd have .DSK images
simply being always in the pyhsical sector order. My first
pre-internet emulator worked that way.

2. Is it great that the most popular Apple II disk image type has to
go without any meta data at all. No.

Personal note: If I could decide from scratch, I'd have all disk
images come with extensible meta data.

Okay, now to what used to be the topic at hand:

1. Is the issues with .DSK images noticably reduced by Michael
renaming his .DSK file to .PO? No.

2. Is Michael's .DSK file hard to auto-detect? No.

Just my two cents,
Oliver

Re: FASTCIRC--High-speed circles for HGR graphics

<tjmeeg$7ut0$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4873&group=comp.sys.apple2#4873

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!paganini.bofh.team!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: keg...@provalid.com (Kent Dickey)
Newsgroups: comp.sys.apple2
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
Date: Sun, 30 Oct 2022 18:06:08 -0000 (UTC)
Organization: provalid.com
Lines: 40
Message-ID: <tjmeeg$7ut0$1@dont-email.me>
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com> <dog_cow-1666985012@macgui.com> <tjjsl8$3kfu6$1@dont-email.me> <tjlob2$6u0v$1@solani.org>
Injection-Date: Sun, 30 Oct 2022 18:06:08 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="3f4beb963ba7e0de39578dcd76bd3b7c";
logging-data="261024"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18L/2zHL+ecLYn+IBkWwRPc"
Cancel-Lock: sha1:7Bl/zZqwquZG1SXGG7at9kgY5BM=
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: kegs@provalid.com (Kent Dickey)
 by: Kent Dickey - Sun, 30 Oct 2022 18:06 UTC

In article <tjlob2$6u0v$1@solani.org>, Oliver Schmidt <ol.sc@web.de> wrote:
>Hi Kent,
>
>It seems to me that your topic is by now rather far away from where we
>(or at least I) started.
>
>But let me first try to avoid potential misunderstandings:
>
>1. Is it great that .DSK images are often DOS3.3 and often ProODS
>ordered? No.
>
>Personal note: If I could decide from scratch, I'd have .DSK images
>simply being always in the pyhsical sector order. My first
>pre-internet emulator worked that way.
>
>2. Is it great that the most popular Apple II disk image type has to
>go without any meta data at all. No.
>
>Personal note: If I could decide from scratch, I'd have all disk
>images come with extensible meta data.
>
>Okay, now to what used to be the topic at hand:
>
>1. Is the issues with .DSK images noticably reduced by Michael
>renaming his .DSK file to .PO? No.

Actually, my thesis is most of these .DSK images in ProDOS sector order are
relatively recent creations (within the last 20 years), and are not historical.
And so asking people who are creating these images now to use .PO for ProDOS
order would achieve my goal.

>2. Is Michael's .DSK file hard to auto-detect? No.
>
>Just my two cents,
>Oliver

What is your suggested algorithm for auto-detecting the sector order of
..dsk images?

Kent

Re: FASTCIRC--High-speed circles for HGR graphics

<tjmehn$7ut0$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4874&group=comp.sys.apple2#4874

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!paganini.bofh.team!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: keg...@provalid.com (Kent Dickey)
Newsgroups: comp.sys.apple2
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
Date: Sun, 30 Oct 2022 18:07:51 -0000 (UTC)
Organization: provalid.com
Lines: 36
Message-ID: <tjmehn$7ut0$2@dont-email.me>
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com> <tjh4a6$358ad$1@dont-email.me> <f6cd4810-aa80-4c7d-8428-924d84b88042n@googlegroups.com> <5cdb9ecc-d234-4fe0-8d26-ff8de4c4fa5bn@googlegroups.com>
Injection-Date: Sun, 30 Oct 2022 18:07:51 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="3f4beb963ba7e0de39578dcd76bd3b7c";
logging-data="261024"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+8lN/M7cqjw83FG5bhNfLg"
Cancel-Lock: sha1:ylQsrwOKKyd+Aux3jvNWPoauHt0=
Originator: kegs@provalid.com (Kent Dickey)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
 by: Kent Dickey - Sun, 30 Oct 2022 18:07 UTC

In article <5cdb9ecc-d234-4fe0-8d26-ff8de4c4fa5bn@googlegroups.com>,
fadden <thefadden@gmail.com> wrote:
>On Saturday, October 29, 2022 at 10:17:38 AM UTC-7, Michael 'AppleWin
>Debugger Dev' wrote:
>> My gut feeling is that ProDOS didn't really take off in popularity
>until well into the 2000's when emulators made it trivial to switch.
>
>Early emulators assumed all non-nibble disk images were in DOS order,
>because that's what the disk transfer utilities available back then
>used.
>
>I suspect that what propelled ProDOS-ordered images was the use of
>ShrinkIt to compress disks, and utilities like NuLib that would unpack
>them into a ProDOS-ordered file. When using that approach, you'd need
>to use a second utility to reorder the sectors to DOS order so the image
>would be accepted by the emulator. Support for both DOS and ProDOS
>ordering in emulators came later, and I don't think any emulators used
>auto-detection until CiderPress started doing it (2003).
>
>The ".2img" format was designed to resolve the ambiguity once and for
>all, but it never really took off.
>
>One of my tests for CiderPress is to run MDC (Multi-Disk Catalog) on a
>partial mirror of asimov. (I occasionally update a copy here:
>https://faddensoftware.com/ .) One could instrument MDC to report the
>number of ambiguous / mis-labeled / unrecognizable images there are,
>were one sufficiently interested in doing that, but I'm not sure this
>discussion is really hampered by a lack of data. (FWIW, a simple grep
>reveals there are 10,411 disk image files with recognizable filesystems
>named "*.dsk" in my data set, though some of them are larger than 140KB
>and hence unambiguously ProDOS-ordered.)

Can you describe CiderPress's algorithm for determining sector order of
a .dsk file?

Kent

Re: FASTCIRC--High-speed circles for HGR graphics

<cda5963e-97e9-446f-9983-278eadc9ebd0n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4877&group=comp.sys.apple2#4877

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:ac8:5bcf:0:b0:3a4:f2a4:58b8 with SMTP id b15-20020ac85bcf000000b003a4f2a458b8mr8323103qtb.462.1667166216491;
Sun, 30 Oct 2022 14:43:36 -0700 (PDT)
X-Received: by 2002:a05:620a:74e:b0:6e5:7560:26ee with SMTP id
i14-20020a05620a074e00b006e5756026eemr6864074qki.242.1667166216242; Sun, 30
Oct 2022 14:43:36 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Sun, 30 Oct 2022 14:43:35 -0700 (PDT)
In-Reply-To: <tjmehn$7ut0$2@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=24.130.68.111; posting-account=UAtoeQoAAADrX7T-MHdWWRC4Fzf0dsLP
NNTP-Posting-Host: 24.130.68.111
References: <SPecnXQkNMtF3s_-nZ2dnZfqn_udnZ2d@giganews.com>
<tjh4a6$358ad$1@dont-email.me> <f6cd4810-aa80-4c7d-8428-924d84b88042n@googlegroups.com>
<5cdb9ecc-d234-4fe0-8d26-ff8de4c4fa5bn@googlegroups.com> <tjmehn$7ut0$2@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cda5963e-97e9-446f-9983-278eadc9ebd0n@googlegroups.com>
Subject: Re: FASTCIRC--High-speed circles for HGR graphics
From: thefad...@gmail.com (fadden)
Injection-Date: Sun, 30 Oct 2022 21:43:36 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3186
 by: fadden - Sun, 30 Oct 2022 21:43 UTC

On Sunday, October 30, 2022 at 11:07:53 AM UTC-7, Kent Dickey wrote:
> Can you describe CiderPress's algorithm for determining sector order of
> a .dsk file?

"Complicated".

It tries DOS, ProDOS/Pascal, CP/M, and physical sector orders. (CP/M ordering is not really a thing, since nobody is creating disk images with CP/M software... but we might as well collect the whole set.) It tests the filesystem for DOS, ProDOS, Pascal, CP/M, RDOS, Gutenberg, and is probably checking for HFS even though I doubt anybody put that on a 5.25" floppy.

The tests for DOS / ProDOS filesystems have to take into account non-5.25" situations, like UNIDOS disks and DOS Master floppies, so there's a bunch of auto-detect code that doesn't really apply to 5.25" disks.

The tricky part is finding the right thresholds for the filesystem check. If you find 15 catalog sectors in the right order on track 17, you're done. If you find 2, you've got the wrong order. If you find 4... could be the wrong order plus some lucky bytes, could be a DOS disk with a custom short catalog track. So you try each order, and come up with a "yes definitely", "no definitely", or "maybe go with this one if you can't find anything better".

The filename extension is used as a hint, but enough files were named the wrong way that CiderPress doesn't pay much attention to it. It does allow the code to try the most likely order first, so if we get a "yes definitely" from a filesystem we can just stop looking. Also, if we can't identify the filesystem, we can open the sector editor with order indicated by the extension.

It Would Be Nice if CiderPress complained about incorrect or ambiguous filename extensions to encourage people to correct them.

cf. https://retrocomputing.stackexchange.com/q/15054/56

Pages:123
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor