forum home page
register faq member list calendar search
MacShock.com - Apple Forums
Reload this Page
Old 01-03-2012, 08:30 PM
Egan Ford
Guest
 
Posts: n/a
Default Recommended way to format disk from assembly?

Hello all,

I am trying to create a dumb-down one-way version of ADT, but I am
getting strange (but consistent) results. If I create a diskette from
an image (computer -> //e disk), and then use ADT to read that
diskette to create a new image (//e disk -> computer), the images are
identical, yet my diskette will not boot. If I use ADT to create an
image, then it does boot. Both the booting disk and the non-booting
disk when ripped by ADT have the same md5sums (I also did a bit for
bit check).

Stumped.

I am using RWTS to format as well as write out the data. My guess is
that the format is somehow not correctly skewing the disk. Dunno.
Ideas?

Thanks.
  Reply With Quote
Old 01-03-2012, 10:50 PM
David Schmidt
Guest
 
Posts: n/a
Default Recommended way to format disk from assembly?

On 1/3/2012 4:18 PM, Egan Ford wrote:
> I am trying to create a dumb-down one-way version of ADT [...]


Funny, that's how Rich Williamson's SENDDISK (forerunner of ADT) started
out. Asimov has that in /pub/apple_II/utility/senddisk.zip. The source
is pretty short - Rich says he wrote it in the monitor. How very
Woz-esque of him. His code is II to

> Both the booting disk and the non-booting
> disk when ripped by ADT have the same md5sums (I also did a bit for
> bit check).


But what does the disk look like while it's in the //e? Take a look
with a sector editor. Is your one-way code taking into account that
sectors come down the wire in reverse order (from F down to 0) from a
typical ADT server?

What if you start with a normally formatted disk, skip your RWTS format,
and send the disk? Would that boot?

Have you started with the INIT code from the Beneath Apple DOS book
(page A-12)?
  Reply With Quote
Old 01-04-2012, 12:40 AM
Egan Ford
Guest
 
Posts: n/a
Default Recommended way to format disk from assembly?

On Jan 3, 2:54*pm, David Schmidt <schmi...@my-deja.com> wrote:
> On 1/3/2012 4:18 PM, Egan Ford wrote:
> Rich says he wrote it in the monitor. *How very
> Woz-esque of him.


Yeah, I cannot do that. I cannot code without vi and make. Cross-
compiling--how un-Woz of me.

> What if you start with a normally formatted disk, skip your RWTS format,
> and send the disk? *Would that boot?


Yep it does. And the reverse does not boot. I.e. format with RWTS,
then load up code with ADT.

> Have you started with the INIT code from the Beneath Apple DOS book
> (page A-12)?


Yeah, looked at it. Although not optimal, I've settled on using the
"file manager" init. The only overhead is that it writes out DOS at
the end. But I can live with that and that code is working for me.
Moving forward.

Thanks again, this really helped.

BTW, thanks for the F-0 tip. I can write tracks about 4x faster now.

P.S. RE: my ADT issues with block 273. It is hardware. I can
duplicate with my own code. Funny it happens on two different
machines, but more frequently on one than an other. I need more
drives.
  Reply With Quote
Old 01-04-2012, 07:40 AM
Antoine Vignau
Guest
 
Posts: n/a
Default Recommended way to format disk from assembly?

My question is: what is the value of $B7EB? ie. when you format a disk
with your code, which disk volume do you have in your IOB?

Antoine
  Reply With Quote
Old 01-04-2012, 07:40 AM
Egan Ford
Guest
 
Posts: n/a
Default Recommended way to format disk from assembly?

On Jan 3, 11:17*pm, Antoine Vignau <antoine.vig...@laposte.net> wrote:
> My question is: what is the value of $B7EB? ie. when you format a disk
> with your code, which disk volume do you have in your IOB?
>
> Antoine


$00.
  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:56 PM.
Copyright ©2007-2008 MacShock.com. Powered by vBulletin
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.