Re: [hatari-devel] TT emulation crashes when there is no ACSI drive

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


Hi,

I'm not familiar with what Hatari does with the cartridge code. Some
kind of initialization I assume that cannot be executed by different
means I assume?

Best regards

Uwe

> Uwe Seimet schrieb:
> 
> > Sounds quite tricky. Why doesn't this also happen on real Atari hardware?
> > I'd assume that there could also be an MFP interrupt at a critical
> > moment.
> 
> Yes, but there you don't have the Hatari cartridge code using additional
> stack space. I suppose those few words make the difference between
> working and crashing.
> 
> Just to illustrate how tight this is: At the call to Pexec(7) in
> load_n_reloc [1], the stack pointer is at $01E7BA. The basepage of the
> GEMDOS process is at $01E700, so that the register save area extends up
> to $01E77F; meaning there are only 58 bytes of stack left before the
> register save area is corrupted.
> 
> Regards
> Christian
> [1] <https://git.tuxfamily.org/hatari/hatari.git/tree/src/cart_asm.s#n198>
> --
> 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/