Re: [hatari-devel] EXA demo Evolution : Improvement in search

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


Hi again,

There's exactly the same code and problem for Exa "Evolution" demo.
I've managed to see this great demo under hatari too.

I've got the version patched by ggn.

Again, Breakpoint at the beginning of the demo, then

> b pc=text
> c

This time, it's easier, the test is directly into the main part :

> d

$0004e7a8 : 4879 0020 0000                     pea       $200000
$0004e7ae : 4e41                               trap      #1
$0004e7b0 : 4ff9 0006 1b66                     lea       $61b66,sp
$0004e7b6 : 21fc 0004 e806 0010                move.l #$4e806,$0010.w
$0004e7be : 5468 4973                          addq.w #2,$4973(a0)
$0004e7c2 : 204c                               movea.l   a4,a0
$0004e7c4 : 4f61                               DC.W      $4f61
$0004e7c6 : 4445                               neg.w     d5
>
$0004e7c8 : 5220                               addq.b    #1,-(a0)
$0004e7ca : 496e                               DC.W      $496e
$0004e7cc : 636c                               bls.s     $4e83a
$0004e7ce : 7564                               DC.W      $7564
$0004e7d0 : 6520                               bcs.s     $4e7f2
$0004e7d2 : 3332 2056                          move.w $56(a2,d2.w),-(a1)
$0004e7d6 : 4f49                               DC.W      $4f49
$0004e7d8 : 5a73 2033                          addq.w #5,$33(a3,d2.w)
>
$0004e7dc : 3320                               move.w    -(a0),-(a1)
$0004e7de : 6b68                               bmi.s     $4e848
$0004e7e0 : 7a20                               moveq     #$20,d5
$0004e7e2 : 496e                               DC.W      $496e
$0004e7e4 : 5465                               addq.w    #2,-(a5)
$0004e7e6 : 7252                               moveq     #$52,d1
$0004e7e8 : 7570                               DC.W      $7570
$0004e7ea : 7465                               moveq     #$65,d2
>
$0004e7ec : 4420                               neg.b     -(a0)
$0004e7ee : 536f 556e                          subq.w #1,$556e(sp)
$0004e7f2 : 4474 5261                          neg.w $61(a4,d5.w*2)
$0004e7f6 : 634b                               bls.s     $4e843
$0004e7f8 : 2044                               movea.l   d4,a0
$0004e7fa : 7370                               DC.W      $7370
$0004e7fc : 2d52 6f55                          move.l (a2),$6f55(a6)
$0004e800 : 7420                               moveq     #$20,d2
>
$0004e802 : 2121                               move.l    -(a1),-(a0)
$0004e804 : 3f00                               move.w    d0,-(sp)
$0004e806 : 6100 0296                          bsr       $4ea9e
$0004e80a : 4a80                               tst.l     d0
$0004e80c : 6b00 0286                          bmi       $4ea94
$0004e810 : 4879 0058 ffff                     pea       $58ffff
$0004e816 : 4e4e                               trap      #$e
$0004e818 : 33c0 0005 7f1c                     move.w    d0,$57f1c
>
$0004e81e : 6100 05b2                          bsr       $4edd2
$0004e822 : 4e7a 0002                          movec     cacr,d0
$0004e826 : 23c0 0004 fa4a                     move.l    d0,$4fa4a
$0004e82c : 203c 0000 3111                     move.l    #$3111,d0
$0004e832 : 4e7b 0002                          movec     d0,cacr
$0004e836 : 6100 027a bsr $4eab2 <--------- Here is the compute D0 subroutine $0004e83a : b07c 4100 cmp.w #$4100,d0 <--------- And the test
$0004e83e : 6f00 023e                          ble       $4ea7e
>
$0004e842 : b07c 4200                          cmp.w     #$4200,d0
$0004e846 : 6e00 0236                          bgt       $4ea7e


Again, just break at the beginning of the tests and change D0 value to $4150

> b pc=$4e83a
> c

> r d0=$4150
> c

And the demo runs correctly to the end.

The greetings effect kills the music temporarly, but that's another problem.


Regards,
Laurent




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