Jump to content



0

ATR SD to DD


3 replies to this topic

#1 gtkakega OFFLINE  

gtkakega

    Space Invader

  • 47 posts
  • Location:Canada

Posted Tue May 2, 2006 8:20 PM

Anyone know how to convert a single density ATR file to double density ATR file using PC?

#2 danwinslow OFFLINE  

danwinslow

    Stargunner

  • 1,748 posts

Posted Tue May 2, 2006 9:07 PM

Well, an ATR is just a raw bunch of sectors with a small 16 byte header on the front...you could use something like seek and fread/fwrite from C. Open the input, seek to the front, read in your 16 byte header, change the values as appropriate, open output file, write new header, then go into an xfer loop reading 128 byte sectors from the old and writing out 256 byte sectors or whatever to the new...maybe, some of that is conjecture...the specs for ATR files are available if you google a bit.

Or, you could probably use an emulator to format a blank DD disk, then just copy files over. The APE interface I think has some conversion utilites for ATR and so forth as well.

#3 Rybags ONLINE  

Rybags

    Quadrunner

  • 10,323 posts
  • Location:Australia

Posted Tue May 2, 2006 9:43 PM

I don't know if anyones created a utility to do that.

Imagic is on the AtariMax site, but it just converts between formats like .XFD .ATR etc.

You can't just merge sectors. Atari DOSes typically have the last 3 bytes of the sector reserved for link and data length info.

Unless someone can link to a PC utility that replicates what the relevant DOS would do, I would recommend just using the emulator.

To make the process faster, run in turbo mode, with Windows typematic rate set in keyboard prefs.

Atariman is a file-management program for Windows:

Attached File  atariman.zip   480.35K   59 downloads

I don't have doco for it, and havent' really used it so I don't know if it will do what you want.

Edited by Rybags, Tue May 2, 2006 9:54 PM.


#4 gtkakega OFFLINE  

gtkakega

    Space Invader

  • 47 posts
  • Location:Canada

Posted Wed May 3, 2006 3:11 PM

The problem I had was copying a single density ATR image to a bootable double density floppy disk on PC side. Since I didn't have an SIO2PC interface I figured out the following:

- used Atari800Win to load D1: with my source ATR image and created a new 180KB ATR image on D2:
- formatted D2: in double density and wrote DOS files to it
- copied over files from D1: to D2:
- used WriteATR program to write the new 180KB ATR image to floppy disk
- booted the floppy on my Happy 1050 - it worked!

I kinda went duh to myself after.... :D




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users