Re: [hatari-devel] Fastload from GEMDOS drive emulation

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


Thomas Huth schrieb:

> Am Mon, 10 Jun 2019 08:59:45 +0200
> schrieb Christian Zietz <czietz@xxxxxxx>:
>> When you load and relocate a program yourself, like Hatari has to do
>> for GEMDOS emulation, it's up to you (=Hatari) to clear the memory.
>> The program flags passed to Pexec(7) are only used to control Malloc
>> behavior.
>
> D'oh! Is this documented anywhere? TOSHYP does not mention it, and the
> Atari Compendium even does not mention mode 7...

I'm not sure if and where it's documented. But as always, source code is
the best documentation. If you look at EmuTOS...
https://github.com/emutos/emutos/blob/ec779a9a18041c2e0ace83643414b90476f00319/bdos/kpgmld.c#L220
.... or the Atari TOS sources that Thorsten Otto provides (in
bdos/proc.c), you can see that PF_FASTLOAD is only checked in the
function that loads a PRG from disk and relocates it. Therefore, if you
handle that yourself, you also have to handle PF_FASTLOAD yourself.

Regards
Christian
--
Christian Zietz  -  CHZ-Soft  -  czietz@xxxxxxx
WWW: http://www.chzsoft.de/
PGP/GnuPG-Key-ID: 0x52CB97F66DA025CA / 0x6DA025CA



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