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

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


Hi,

On 25.9.2022 7.13, Roger Burrows wrote:
On 24 Sep 2022 at 20:51, Eero Tamminen wrote:

I found a program that may not work correctly with the GEMDOS HD
relocation code.  It's the "c64_show" from "Mono collection #01":
https://www.pouet.net/prod.php?which=54828

I've attached that monocrome slideshow program here. Its pictures are
not included (to keep zip size <100KB), but they're loaded after the
issue happens, so that should not matter.

Currently program works only with real TOS v1.0x, and only when loaded
from a floppy disk.

It works OK on my system (Hatari MegaSTe emulation, 1MB memory, EmuTOS, loaded
from floppy or emulated ACSI hard drive).

I guess you mean it works until the "Press any key" prompt?

As I've never gotten it to work fully with any version of EmuTOS (not with with your config either).

It always crashes for me with EmuTOS after waiting a bit, but before loading any of the pictures:
---------------------------------------------
....
            [Press any key to see further pictures, or ESC to quit]
WARN : Bus Error reading at address $400000, PC=$13556 addr_e3=13556 op_e3=2010

Panic: Bus Error
misc=2011 opcode=2010
addr=00400000 sr=0308 pc=00013556

D0-3: b97fb97e 0000000c 00000060 0000ffff
D4-7: 00000008 00000fff 00000000 00000000
A0-3: 00400000 000023e4 000136d0 0001351c
A4-7: 00013995 0001341c 00013986 00006b6e
 USP: 000f7ff8

basepage=0001341c
text=0001351c data=0001366c bss=000137b0
Crash at text+0000003a
---------------------------------------------

Normally it would continue like this:
---------------------------------------------
            [Press any key to see further pictures, or ESC to quit]
GEMDOS 0x3D Fopen("64pic.01", read-only) at PC=0x149A4
GEMDOS 0x3E Fclose(6) at PC 0x149CE
GEMDOS 0x3D Fopen("64pic.02", read-only) at PC=0x149A4
GEMDOS 0x3E Fclose(6) at PC 0x149CE
GEMDOS 0x3D Fopen("64pic.03", read-only) at PC=0x149A4
....
---------------------------------------------

NOTE: now it crashed many times in the same place also with normal TOS, although I did not use fast-forward or move my mouse. So the trigger for these could be something else than mouse events:
---------------------------------------------
....
            [Press any key to see further pictures, or ESC to quit]
WARN : Bus Error reading at address $400000, PC=$18d42 addr_e3=18d42 op_e3=2010
GEMDOS 0x4C Pterm(-1) at PC 0xE0112A
GEMDOS 0x00 Pterm0() at PC 0x188BC
---------------------------------------------



	- Eero


> It will crash with a bus error if you have 4MB, due to some crap coding.
>
When run from GEMDOS HD, program exits instead, after Hatari gives
relocation warning:
-------------------------
GEMDOS 0x4B Pexec(0, "C:\C64_SHOW.PRG", [0]"", 0x0) at PC 0xFDD2DA
GEMDOS 0x4B Pexec(5, 0x0, 0xa542, 0x0) at PC 0xFA003A
       C64 SLIDESHOWV1.0 LOADING !    GEMDOS 0x4B Pexec(0,
"C64_DATA.BSW", [0]"", 0x12824) at PC 0x125D2
GEMDOS 0x4B Pexec(5, 0x0, 0x12824, 0x12824) at PC 0xFA003A
ERROR: Failed to parse relocation table of 'c64_data.bsw'.
GEMDOS 0x00 Pterm0() at PC 0x125E0
-------------------------

It gives the same error msg from my GEMDOS emulation drive.  I took a look at
the relevant Hatari code and it seems to me that it will always issue that
message when there is exactly 4 bytes of relocation info (which is the case for
C64_DATA.BSW).




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