[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Corruption of high TPA



On Tue, 2009-06-09 at 23:12 +0200, Vincent Rivière wrote:
> Hello.
> 
> I have compiled some programs with the latest MiNTLib, everything works well 
> on my usual ARAnyM + EasyMiNT setup.
> 
> Bur I tried them on another more complicated MiNT setup, with several 
> resident programs, accessories, etc. and the new programs crashes in the 
> startup code !
> 
> I managed to reproduce the crash with the very simple assembler program 
> attached to this message. It is a stand-alone program, it does not use the 
> MiNTLib but it mimics its behaviour. Basically, it initializes the stack at 
> the top of the TPA, and displays a message.
> 
> On my problematic MiNT setup, it crashes even before displaying the message! 
> But if I subtract 36 bytes from my new stack, it works. So it looks like the 
> 36 highest bytes of the TPA are getting corrupted by something.
> 
> Could you please confirm that this small program is correct without any 
> subtract, so my MiNT setup is broken ?

Works fine here.

Alan.