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: Christian Zietz <czietz@xxxxxxx>
- Date: Mon, 10 Jun 2019 10:56:47 +0200
- Autocrypt: addr=czietz@xxxxxxx; prefer-encrypt=mutual; keydata= mQGiBDdn2AURBADksdHVyN55nv0lx4qGx+GQMrbo7zs7lSkAfhkgmgqp84xUeUiWI/kj1on/ wxkmJ96Yzt0ktDbZYM0C9Z66M3rLfXE1vXALHhegeMuOy/tVWybcohRrhfB7tmANTESJOZke 0lZZ59DcIfFoqLYErb6qX8nLPYnOv6sFubxnhuF9QQCg/3GaIR1sVK9Xq+b4B9BtVxd7cHMD /i2hAEOX3WY3K7PNZJziYF54uBbGiVS88W41l1RARcaeogIZcAKpFH3on+Tf60fAC85MCp17 QIeP44hj4Cf46B+UTVhf3EFG4IOsLRxUonpt7dKO8txsKFN/OFsjlPOuDyg7XMpEWkTWZetm HC9/0pcApIXSDnggde4T8AX6nn/+A/4hBOhPxuvkV7Uw/ebLYwXrLo2vt9OvvC1VfeywNseq PIkFX/+n/+niBS+Cb2ess2SVQNKJ9vP5+vBxg5AMfQXqk1ONldGQ/ARHmL6+Iuo47mO51e7R i691hq13wHUvyKh1AN7fpKI2m3YW55XEQ+3iTMIZcqfjr6xYgG8GJTppdbQgQ2hyaXN0aWFu IFppZXR6IDxjemlldHpAZ214Lm5ldD6IYwQQEQIAIwIZAQIeAQIXgAUCVGD5IgcLCQgHAwIB BhUIAgkKCwQWAgMBAAoJEFLLl/ZtoCXKubQAoIHNaurSMQB8MHDoTk3B7WHk2ApoAJ0egA8q aNoVj0kU4+OjeGzFiSHMOrkCDQQ3Z9gFEAgA9kJXtwh/CBdyorrWqULzBej5UxE5T7bxbrlL OCDaAadWoxTpj0BV89AHxstDqZSt90xkhkn4DIO9ZekX1KHTUPj1WV/cdlJPPT2N286Z4VeS Wc39uK50T8X8dryDxUcwYc58yWb/Ffm7/ZFexwGq01uejaClcjrUGvC/RgBYK+X0iP1YTknb zSC0neSRBzZrM2w4DUUdD3yIsxx8Wy2O9vPJI8BD8KVbGI2Ou1WMuF040zT9fBdXQ6MdGGze MyEstSr/POGxKUAYEY18hKcKctaGxAMZyAcpesqVDNmWn6vQClCbAkbTCD1mpF1Bn5x8vYlL IhkmuquiXsNV6TILOwACAgf+JhucyZDzOWGht9e0U71kC2bxIOr4iz+ADd3sxS62okrocHXp B9zYDhmJ74BFfC7xMd9bwWNj7YR0yiUdOzY27OcXcEkVmhVBW6AqxuRAKfmYMvvnyR5z5OP6 vg2YSzgOmooc5vequa5YIjLmFkuRlglLiEgdW9gPBFtirNqxOtAqSxEcRrblSn8JBEU51Ii6 SVVuo1nXOP11g8rVO4YvEED89pHT4jgLZu4th1N+mDumNZlqyUIxZ4tQyw3X2OWvEbKWGn2j h0ZywaomUTpVA+wiwxndawP40oowFYT8LNeLtfZyq6xPpQmT2DaNhP4gdy3qkDfnmXkc2zFM YukXo4g/AwUYN2fYBVLLl/ZtoCXKEQKA3QCfTJstYzXurbt9ZnoTU3SFQQmG0/wAoNX91nWM nsS7JOepPAzOUoke4AIi
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1560157008; bh=MsdB7Qgv0E7EW19wWDBp75/6HbRiRsVhA9NqlQGE6nY=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=IUXFJej14YPCW38msNob/8z501qVJz8b+HCm+TsBAL5NXSkyYlZ8wuXBTQPCKVUti Jft1TCU3KWfSXgHjfDUayjKPW31BMWgJOrzBHWPPL3OMuuKScWh179STEaQ3E83XNx p8PpuJDB0tGEz/w3dvNBOVY6WaNbeRzl1Nt3iLCk=
- Openpgp: preference=signencrypt
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