| Re: [hatari-devel] TT emulation crashes when there is no ACSI drive | 
[ Thread Index | 
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
] 
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] TT emulation crashes when there is no ACSI drive
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Wed, 7 Aug 2019 19:40:56 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1565199656;	s=strato-dkim-0002; d=seimet.de;	h=In-Reply-To:References:Message-ID:Subject:To:From:Date:	X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender;	bh=pg/dDySyr9DXuYX535MTDv+1RGPwyDHZEoJT6OiMv30=;	b=f75veT0vCskdIBEB6N8dMQNoPcV8jlINC76iyE/Gbe+4z0j7dA1PL4q+uS8XTdryuY	6mjK1VTQqqW2gL+9/2rq2r+P3z0wo+zFQ/ItaWRySHUyiWlqOOxMP3IM2drerEaJLNN5	NkWrs6qWUeQ0kUnsFmJMeq3syjerENauWgHuYH/zJagc9LAWP4AcFWKRgFLwROoFL4jP	XHLz/OBFYBDRN3cA/b/e6lexqh4JjMkPwUFBrUwnE4zs9jzgOnZlwsBSA9XoOwoF9EBA	ZJ6stoUa3PEvnxvPRLDvH3XoZF6H5nhSz5Lu81iBI5L86XG/cRBpuy8h3S2JpUIadNkS	oV8g==
Hi,
Thank you for investigating further. I might have time to provide at least
some more pieces of information next weekend.
Best regards
Uwe
> Hi,
> 
> On 8/6/19 9:40 PM, Eero Tamminen wrote:
> > On 8/6/19 7:15 PM, Christian Zietz wrote:
> >> Eero Tamminen schrieb:
> >>
> >>> If you look at the cartridge code in my mail, stack pointer is first
> >>> moved to a0, and after saving a6 to stack, a0 is moved into a6, then
> >>> the extra subroutines are called, after which comes the failing
> >>> instruction:
> >>>           clr.l   2(a6)
> >>
> >> But still I don't see how $23000000 could end up in A6.
> > 
> > Oh, you mean that a0 i.e. stack pointer needs to have been corrupted
> > before cartridge code gets called.  I.e. TOS has corrupted it somehow,
> > or Uwe has some other program in AUTO which Pexec's NF_SCSI.PRG with
> > corrupted stack pointer?
> 
> No, that's nonsense too, as then the subroutines before crashing
> instruction would crash instead.
> 
> Because Uwe is using GEMDOS HD, he can't be using any other cartridge
> code.
> 
> Only other things I can think of are:
> * Uwe running some MMU program that maps something else
>    to cartridge area.  Is that even possible?
> * Something seriously wrong in Uwe's last Hatari build...?
> 
> 
> 	- Eero
> 
> > (Sorry, I'm very rusty on asm, as I haven't written much of it myself
> > even back in 90's.)
> > 
> > 
> >>> The place where bus error happens, is during program loading, not
> >>> its execution.  So NF SCSI shouldn't actually be needed to reproduce
> >>> this, *if* the crash actually happens at NF_SCSI.PRG loading.
> >>
> >> OK. I tested with a current Hatari Windows build from antartica.no,
> >> Uwe's config file, TOS 3.06, and NF_SCSI.PRG (from Uwe's web page) in
> >> the AUTO folder. No crash! (Of course, after loading, NF_SCSI.PRG
> >> complains that the Natfeats SCSI feature is not available and terminates
> >> itself.)
> > 
> > 
> >      - Eero
> > 
> > 
> > 
> > 
> 
>