[hatari-devel] Falcon emu : problem with 16 Mhz freezing
npomarede at corp.free.fr
npomarede at corp.free.fr
Thu Dec 3 00:11:03 CET 2009
On Wed, 2 Dec 2009, Laurent Sallafranque wrote:
> Hello,
>
> I'm working again on stocasto 's problem (code freezing at 16 and 32 Mhz).
> Fredrik Noring sent me some parts of code of the demo.
> Many thanks to him !
>
>
> The code is looping forever here :
>
> >> 0002eae4: 4a79 0005 1788 67f8 4a39 TST.W $00051788
> >> 0002eaea: 67f8 4a39 0003 0730 6708 BEQ.B #$fffffffffffffff8 ==
> >> 0002eae4 (TRUE)
>
> .wait tst.w rasterlock
> beq.s .wait
>
>
>
> rasterlock is triggered in timerb (set) and timerb1 (clear).
>
> Timerb and timerb1 are running every other time to each other.
> (Sorry for my poor english here).
>
>
> timerb tst.b key_time
> bne.s .skip
> move.l background_color,$ffff9800.w
> .skip move.b #%00000000,$fffffa1b.w
> move.b #199,$fffffa21.w
> move.l #timerb1,$120.w
> move.b #%00001000,$fffffa1b.w
>
> st rasterlock
> bclr.b #0,$fffffa0f.w
> rte
>
> timerb1 tst.b key_time
> bne.s .skip
> clr.l $ffff9800.w
> .skip move.l #timerb,$120.w
> and.b #%11111110,$fffffa07.w
>
> clr.w rasterlock
> bclr.b #0,$fffffa0f.w
> rte
>
>
> The problem seems to be related to the timerB.
> I don't know very well this part of hatari's code.
>
> Somebody's got any idea here ?
> This would resolve many programs that actually need to run at 32 Mhz.
>
> Best regards,
>
> Laurent
>
Hello,
I try to run this, but I don't know which settings / tos to use and I get
some bombs.
Can you tell which params you use to get it started ?
Perhaps timer B is not updated when the falcon runs in videl mode ?
Nicolas
More information about the hatari-devel
mailing list