Re: [hatari-devel] Basepage and proc_lives debugging from the debugger

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


Am Mon, 18 Nov 2019 17:20:52 +0100
schrieb Matthias Arndt <marndt@xxxxxxxxxxxxxx>:

> Am Sun, 17 Nov 2019 19:44:31 +0100
> schrieb Thomas Huth <th.huth@xxxxxxxxx>:
> 
> > Am Sun, 17 Nov 2019 12:55:51 -0500
> > schrieb "Roger Burrows" <anodyne@xxxxxxxxxxxx>:
> >   
> > > On 17 Nov 2019 at 14:00, Matthias Arndt wrote:
> > >     
> > > > Am Sun, 17 Nov 2019 13:47:45 +0100
> > > > schrieb Christian Zietz <czietz@xxxxxxx>:    
> > > > > 
> > > > > Imho, *any* patch proposed for Hatari should be checked to
> > > > > work in TT and Falcon mode by its author.    
> > > > 
> > > > This practically will totally limit any contributions as not
> > > > every Hatari user has TT and Falcon and clones in their focus.
> > > >     
> > > Since Hatari can run in TT mode & Falcon mode, I think all that
> > > Christian was suggesting that you should run a test in those modes
> > > too, with particular attention to what happens with the high-order
> > > byte of the saved PC when a crash occurs in TT-RAM.  Otherwise
> > > you're adding to the developer's workload for a patch that may
> > > only be of importance to you.    
> > 
> > Right. Patches are very welcome, but we're also just doing this in
> > our very rare spare time. So if additional work is required before
> > your patch is acceptable, it's only fair if you try to help / test.
> > 
> > By the way, please use TABs for indentation, not spaces. See also
> > doc/coding.txt.  
> 
> I still disagree as I wouldn't be able to decided if the result would
> be right for expanded TT or Falcon in this case.

FWIW, you can get the answer with two debugger commands on TOS 3.06:

> m 0
00000000: 60 2e 03 06 00 e0 00 30 00 e0 12 1c 00 e0 12 1c   `......0........
00000010: 00 e0 12 1c 00 e0 0d 78 00 e0 12 1c 00 e0 12 1c   .......x........
....
> d 0x00e0121c
$00e0121c : 48f8 ffff 0384                     movem.l   d0-d7/a0-a7,$0384.w
$00e01222 : 21ef 0002 03c4                     move.l    2(sp),$03c4.w
$00e01228 : 302f 0006                          move.w    6(sp),d0
$00e0122c : c07c 0fff                          and.w     #$fff,d0
$00e01230 : e440                               asr.w     #2,d0
$00e01232 : 11c0 03c4                          move.b    d0,$03c4.w

 Thomas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/