[hatari-devel] Road Riot
Laurent Sallafranque
laurent.sallafranque at free.fr
Mon Feb 22 11:28:00 CET 2010
Hello,
Some comments about RoadRiot :
The loading part of the game is really slow.
The animated menu and the game are running at a correct speed.
I have 2 problems with RoadRiot :
1) screen problem
2) DSP stack problem.
1) Screen problem :
When the race is about to start (when the bimbo counts from 3 to 0), I
press "F11" to go to fullscreen.
The BPP seems to change from 24 to 8 BPP here.
When I go back to windowed mode, it stays in 8BPP mode and all my linux
display is crashed.
I have to disconnect and reconnect my session to reload the X server and
return to 24 BPP.
I'm using an old CRT monitor, not a new LCD one.
I think the problem is in hostscreen.c when switching to fullscreen mode.
2) The DSP stack.
A few months ago, I added the stack management. I think I've done it
correctly, but there may be a bug I don't see.
From what I understand from the motorola DSP doc :
The stack is a 2*16 bits stack. Values are loaded and saved in the stack
from index 1 to 15.
Index 0 is not connected and values written at stack address 0 always
equal 0.
In Road Riot, one of the first instruction is a "movec #$7FFF,SP" which
results in:
SP : 0 --> $3F and this generates a stack error (from me, it's normal).
If I remove the 10 lines that take into account the stack management,
RoadRiot runs well (and some other programs too (built in obsolescence
for example).
But I don't know if the problem is in my code or if my code is OK and
the problem is somewhere else.
(in this last case, removing the 10 lines would mask the problem but not
correct it).
Should I comment the 10 lines for now and let run some more programs or
keep my actual stack management code like this ?
Regards
Laurent
Eero Tamminen a écrit :
> Hi,
>
> I just tested "Road Riot4WD "[1]. It loads fine (just *very* slow) from
> GEMDOS partition, but when the game is to start, it gives infinitely:
> Dsp: 0x029f: 0x000732 unknown instruction
> Dsp: 0x029f: 0x000732 unknown instruction
> Dsp: 0x029f: 0x000732 unknown instruction
> Dsp: 0x029f: 0x000732 unknown instruction
>
>
> [1]
> http://christophe.bray.free.fr/informatique/falcon/jeux/Road%20riot/ROADRIOT.ZIP
>
>
> - Eero
>
>
>
More information about the hatari-devel
mailing list