[hatari-devel] Hatari fails to run AUTO programs from GEMDOS C: (was: Hatari freezing when running FIX24.PRG) |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: [hatari-devel] Hatari fails to run AUTO programs from GEMDOS C: (was: Hatari freezing when running FIX24.PRG)
- From: Christian Zietz <czietz@xxxxxxx>
- Date: Tue, 9 Oct 2018 20:54:58 +0200
- Autocrypt: addr=czietz@xxxxxxx; prefer-encrypt=mutual; keydata= xsDiBDdn2AURBADksdHVyN55nv0lx4qGx+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+3iTMIZcqfjr6xYgG8GJTppdc0gQ2hyaXN0aWFu IFppZXR6IDxjemlldHpAZ214Lm5ldD7CYwQQEQIAIwIZAQIeAQIXgAUCVGD5IgcLCQgHAwIB BhUIAgkKCwQWAgMBAAoJEFLLl/ZtoCXKubQAoIHNaurSMQB8MHDoTk3B7WHk2ApoAJ0egA8q aNoVj0kU4+OjeGzFiSHMOs7BTQQ3Z9gFEAgA9kJXtwh/CBdyorrWqULzBej5UxE5T7bxbrlL OCDaAadWoxTpj0BV89AHxstDqZSt90xkhkn4DIO9ZekX1KHTUPj1WV/cdlJPPT2N286Z4VeS Wc39uK50T8X8dryDxUcwYc58yWb/Ffm7/ZFexwGq01uejaClcjrUGvC/RgBYK+X0iP1YTknb zSC0neSRBzZrM2w4DUUdD3yIsxx8Wy2O9vPJI8BD8KVbGI2Ou1WMuF040zT9fBdXQ6MdGGze MyEstSr/POGxKUAYEY18hKcKctaGxAMZyAcpesqVDNmWn6vQClCbAkbTCD1mpF1Bn5x8vYlL IhkmuquiXsNV6TILOwACAgf+JhucyZDzOWGht9e0U71kC2bxIOr4iz+ADd3sxS62okrocHXp B9zYDhmJ74BFfC7xMd9bwWNj7YR0yiUdOzY27OcXcEkVmhVBW6AqxuRAKfmYMvvnyR5z5OP6 vg2YSzgOmooc5vequa5YIjLmFkuRlglLiEgdW9gPBFtirNqxOtAqSxEcRrblSn8JBEU51Ii6 SVVuo1nXOP11g8rVO4YvEED89pHT4jgLZu4th1N+mDumNZlqyUIxZ4tQyw3X2OWvEbKWGn2j h0ZywaomUTpVA+wiwxndawP40oowFYT8LNeLtfZyq6xPpQmT2DaNhP4gdy3qkDfnmXkc2zFM YukXo8I/AwUYN2fYBVLLl/ZtoCXKEQKA3QCfTJstYzXurbt9ZnoTU3SFQQmG0/wAoNX91nWM nsS7JOepPAzOUoke4AIi
- Openpgp: preference=signencrypt
Christian Zietz schrieb:
> Uwe Seimet schrieb:
>
>> While trying to run more tests with Hatari I just stumbled upon a problem:
>> With only 4 MB ST-RAM configured NVDI does not install on Hatari. First
>> I thought this was another NVDI issue, but then I noticed that it looks
>> as if no AUTO order program is executed at all when I configure 4 MB of
>> ST-RAM.
>
> Solution for that: leave at least one floppy drive enabled. Whether this
> is a Hatari or a TOS 3.06 issue, I don't know. It works with EmuTOS, though.
It *is* a bug in Hatari. Analysis with Hatari 2.1 shows:
With GEMDOS HD Hatari sets bootdev ($446) to 2 (=C:) directly after
reset. With more than 4 MB ST-RAM it will also fake a warm-boot, meaning
that TOS will not clear bootdev again. This is why it works with more
than 4 MB ST-RAM.
But with e.g. 4 MB ST-RAM, TOS 3.06 goes through its normal boot
routine, clearing the memory, including bootdev, which is thus set to 0
(=A:). When no floppy drive is emulated, TOS will notice that its boot
drive is unavailable and will not even try to run any AUTO folder files.
You might ask: But why does TOS boot from C: when a floppy drive is
connected, even though bootdev is overwritten with 0? This is because
Hatari changes the default GEMDOS drive to C: [1]. So when TOS searches
for \AUTO\*.PRG, it will search on C:, even though bootdev is 0.
Hence, another workaround, not requiring Uwe to enable a floppy drive is
to set the "Boot faster by patching TOS & sysvars" option, which will
prevent the memory (incl. bootdev) from being cleared.
Possible bugfixes: Set bootdev only after memory has been cleared, e.g.
in GemDOS_Boot or by hooking hdv_boot like a HD driver would do.
Regards
Christian
[1]
<https://hg.tuxfamily.org/mercurialroot/hatari/hatari/file/533b11ea2f1e/src/gemdos.c#l550>
--
Christian Zietz - CHZ-Soft - czietz@xxxxxxx
WWW: http://www.chzsoft.de/
PGP/GnuPG-Key-ID: 0x52CB97F66DA025CA / 0x6DA025CA