Welcome, Guest. Please login or register.

Author Topic: How to write ADF-images with help of Asm-One !  (Read 1989 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline GreatLorTopic starter

  • Jr. Member
  • **
  • Join Date: Apr 2004
  • Posts: 72
How to write ADF-images with help of Asm-One !
« on: May 24, 2004, 03:02:01 PM »
Alright you A500 owners that want to write ADF-images but are suffering from problems similar to what I suffered from.

Now, I tested AsmOne's sector reading/writing ability to and used "Rick Dangerous 2" for the experiment (although not an ADF file but rather reading directly from the disk - which however is the same, plain binary data), this is what you should do:


Load asmOne, if you dont have it then download it from http://www.euronet.nl/users/jdm/ftp/asmonev120.lha, now, When the assembler prompts for the memory type as work-ram (Chip/Fast/...) you write "chip" and hit , then you type 300 in the next prompt and hit , now you are in the command prompt.


Step 1:

Here's the requirement for managing to write an ADF-image to disk, you must have the ADF-filed chunked/splitted in four files, each file being 40*11*512 (or 225 280) bytes long, no more, no less, now if if have that then you are on the right path.

Hit button once, you are now in the editor.
in the editor, type "b:" hit button, then type "blk.b" hit button again and then type "40*11*512" (or 225280) and hit .
Now hit button to go to the command prompt again.
There, type "a" and hit .


Step 2:

Now, in the command prompt type "rb" and hit .
the system will prompt for three things: "FILENAME", "BEG" and "END".
in the "FILENAME " prompt you type "df0:[path/]filename" and hit , "path" is possible directorie(s) in which your splitted ADF-file(s) is/are in, and "filename" is the actual name of your file.

Next, the "BEG" (begin) prompt, type "b" and hit .

Next, the "END" prompt, neglect it and just hit .

Now the assembler will reads the file and places it in a memory location with the label "b", so now you have the first of four files in the momory location with the label "b", remove now the disk and and put into the drive the disk that you want to write the ADF-image to, having done that type "ws" in the command prompt, you will now be prompted for "Ram-ptr: ", there you type "b" and hit , now you get prompted for "Disk-ptr: ", type 0*40*11 (or just 0) and hit (dont forget to remove the copy protection), in the "length: " prompt you type "40*11" and hit .

NOW things are happening, and after a while the first 1/4 of the ADF-file will be on the disk, after the system has finished writing, remove the destination disk and insert the disk where you have the second file, now type "rb" and hit , in the "FILENAME " prompt type "df0:...." just like before but this time with the path and filename of the second file and hit , in the "BEG" prompt type "b" like before and hit , in the "END" prompt just hit , the assembler now reads the file and place it in the memory location with label "b".

After that you remove the source-disk and insert the destination disk, then you type "ws" and hit , in the "Ram-ptr: " prompt you type "b" and hit , in the "Disk-ptr: " you type "1*40*11" and hit , and in the "length: " prompt you type "40*11" and hit , seconds later you will have the destination disk half-way done, when the the system has finished writing you will repeat this process with just ONE adjustment every time, that is, every time you get the "Disk-ptr: " prompt (when writing to the destionation disk) you increase the "x*40*11" so that the "x" is one number higher, the last process will be when you type "3*40*11", after that you destiantion will be filled with the ADF-image and you can run it and have fun  :-)

I hope this wasnt a confusing tutorial, if you are already familiar with assemblers (such as asm-One), then you'll have an easy task ahead of you, and if not then dont get scared, just download asmOne and play with its sector reding/writing (caution !) abilities, it will be pretty easy when knowing a few things.

Oh, any corrections are praised !

*EDIT*

I'v now made a few corrections, hope this simplifies for those not knowing how to work with assemblers, hey, any comments will be nice, has anyone followed this instruction ? if so, did it work ?, I downloaded the R-TYPE game, whose orginal I managed to break, so I downloaded it and wrote the image to a disk with Asm-One and it works fine.   :-)