Re: [hatari-devel] Relocation warning + program failing when run from GEMDOS HD

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Am Wed, 28 Sep 2022 11:16:23 +0300
schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:

> Hi,
> 
> Gah, now I got "c64_show.prg" to work also from GEMDOS HD, with 4MB RAM, 
> with the following procedure:
> 
> 1. First autostart it with:
>     $ hatari -s 4 -m --fast-forward on ./c64_show.prg
> 2. After it crashes, disable fast-forwarding and start it from the 
> desktop with double click
> 3. Press key when prompted
>     => working slideshow  
> 
> That procedure works both with real TOS and EmuTOS.
> 
> Just waiting long time before starting the program is not enough, it 
> actually needs to crash first.
> 
> WTF???

Well, the program has a corrupt relocation table, so if TOS is not checking
for the length of the relocation table and just looks for the terminating
NUL byte, the behavior of course depends on the contents of the memory that
were there right after the non-terminated table, so depending on whether
there was a NUL byte immediately following or not, the program might have
worked or the relocation process might have corrupted random other
locations of memory.

Anyway, the program is just corrupt. There is not much we could do from the
emulator side execpt to mention it as bad in the compatibility.html doc and
recommend a TOS version that might work by chance.

 Thomas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/