English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   Coders. AMOS (https://eab.abime.net/forumdisplay.php?f=119)
-   -   Repairing Amos (Pro) Source files with Disc Error (https://eab.abime.net/showthread.php?t=99073)

Dan 06 October 2019 21:09

Repairing Amos (Pro) Source files with Disc Error
 
1 Attachment(s)
Hi,

Recently i found an Amos sourcecode, which could not be loaded.
Amos Pro simply showed "Disc Error" as the reason for the loading failure.

Usually this happens when one of the Amos Bank have wrong length. (well this is my guess).


The Sourcecode can be made working again with an hex editor. (I'm using HxD on windows here)

What you want to do, is to load the file into the hex editor, and to search for AmBs string.

I guess this is the marker for the end of the Sourcecode part, and start of the Data banks.

http://eab.abime.net/attachment.php?attachmentid=64660

On this screenshot i have marked the AMBS and the 2 bytes.

These you want to keep, and the rest (after it - to the end) of it you should cut off. (on a backup copy)

Then Change the Last byte, on the screenshot it has a value of 02, to 00

and your file should be loadable again.

If you do this on the original file, then the data, which was in the banks may be lost. Because the data banks are in the part, which is cutted off.

It may be possible to save the single data banks, but i haven't tried this yet.

Theoretically to save the banks, you should Copy the content from AmSP to the start of the next bank (into a new window). And to repeat the process until all banks are saved.

Good luck !


All times are GMT +2. The time now is 06:24.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.04097 seconds with 11 queries