Re: [hatari-devel] Fastload from GEMDOS drive emulation |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Fastload from GEMDOS drive emulation
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Mon, 10 Jun 2019 13:05:58 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1560164760; bh=CnJJnCXsWeLF49raKZ4QagBL4nONVPsOfRkMTJYDfzw=; h=Date:From:To:Subject:From; b=eai+QYcUVxWlDPBzBQHXaPUdxEY8lD8tEKt804IPElTleNAT0ziObra1phPee9vIs oeai2s++e4AQW5NlCsam5yVx/y+OcEEqTwS5BrnAfWzM4B39C4Kkvu7fBDP4NyYCiE nAotPkzYKC+ms7xa2JPmAQyxPtZeVyHZ4M+rrI/prvvXm0LhXa7ucktW43f1XuNOBE Dzyn63Lx9wJE/rZ34Sg7y11Najm+Tj3HCFwwctyskzRPIbyyV0mpX5xqlTQnUvbpCZ 0I81OuiFH0xpdEA+a9PZsOkWoK0PTBPCOJOVs5tLFbTisQ2ol8VeFG8Z0AKP4MJFLO YdPkgD5efOw+w==
Am Mon, 10 Jun 2019 10:56:47 +0200
schrieb Christian Zietz <czietz@xxxxxxx>:
> 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.
Alright, this should now be fixed. Actually, this also fixes a problem
that I've seen with the STE demo "Pacemaker" in the past - there were
graphical glitches in the endpart scroller when the demo has been
started from a GEMDOS HD folder. Thanks again for the hint with
Pexec(7) ... that was the missing piece here.
Thomas