Previous 199869 Revisions Next

r25383 Saturday 21st September, 2013 at 11:39:06 UTC by Angelo Salese
Minor mods to make test1f diag life easier, nw
[src/mame/drivers]stv.c
[src/mess/drivers]saturn.c

trunk/src/mame/drivers/stv.c
r25382r25383
1/************************************************************************
1/************************************************************************************************************************
22
33    stv.c
44
r25382r25383
77
88    TODO:
99    - clean this up!
10   - Properly emulate the protection chips, used by several games (check stvprot.c for more info)
1011
11************************************************************************/
12   (per-game issues)
13   - stress: accesses the Sound Memory Expansion Area (0x05a80000-0x05afffff), unknown purpose;
1214
15   - smleague / finlarch: it randomly hangs / crashes,it works if you use a ridiculous MCFG_INTERLEAVE number,might need strict
16     SH-2 synching or it's actually a m68k comms issue.
17
18   - groovef: ugly back screen color, caused by incorrect usage of the Color Calculation function.
19
20   - myfairld: Apparently this game gives a black screen (either test mode and in-game mode),but let it wait for about
21     10 seconds and the game will load everything. This is because of a hellishly slow m68k sub-routine located at 54c2.
22     Likely to not be a bug but an in-game design issue.
23
24   - danchih / danchiq: currently hangs randomly (regression).
25
26   - batmanfr: Missing sound,caused by an extra ADSP chip which is on the cart.The CPU is a
27     ADSP-2181,and it's the same used by NBA Jam Extreme (ZN game).
28
29   - vfremix: when you play as Akira, there is a problem with third match: game doesn't upload all textures
30     and tiles and doesn't enable display, although gameplay is normal - wait a while to get back
31     to title screen after losing a match
32
33   - vfremix: various problems with SCU DSP: Jeffry causes a black screen hang. Akira's kick sometimes
34     sends the opponent out of the ring from whatever position.
35
36************************************************************************************************************************/
37
1338#include "emu.h"
1439#include "cpu/sh2/sh2.h"
1540#include "cpu/m68000/m68000.h"
trunk/src/mess/drivers/saturn.c
r25382r25383
2626- Add the RS232c interface (serial port), needed by fhboxers (accesses some ports in the a-bus dummy range).
2727- Video emulation is nowhere near perfection.
2828- Reimplement the idle skip if possible.
29- Properly emulate the protection chips, used by several games (check stvprot.c for more info)
3029- Move SCU device into its respective file;
31- Split ST-V and Saturn files properly;
3230
33(per-game issues)
34- stress: accesses the Sound Memory Expansion Area (0x05a80000-0x05afffff), unknown purpose;
31test1f diagnostic hacks:
32"chash parge error" test 0x6035d04 <- 0x0009 (nop the button check)
33"chase line pearg" test 0x6036964 <- 0x0009 (nop the button check again)
3534
36- smleague / finlarch: it randomly hangs / crashes,it works if you use a ridiculous MCFG_INTERLEAVE number,might need strict
37  SH-2 synching or it's actually a m68k comms issue.
38
39- groovef: ugly back screen color, caused by incorrect usage of the Color Calculation function.
40
41- myfairld: Apparently this game gives a black screen (either test mode and in-game mode),but let it wait for about
42  10 seconds and the game will load everything. This is because of a hellishly slow m68k sub-routine located at 54c2.
43  Likely to not be a bug but an in-game design issue.
44
45- danchih / danchiq: currently hangs randomly (regression).
46
47- batmanfr: Missing sound,caused by an extra ADSP chip which is on the cart.The CPU is a
48  ADSP-2181,and it's the same used by NBA Jam Extreme (ZN game).
49
50- vfremix: when you play as Akira, there is a problem with third match: game doesn't upload all textures
51  and tiles and doesn't enable display, although gameplay is normal - wait a while to get back
52  to title screen after losing a match
53
54- vfremix: various problems with SCU DSP: Jeffry causes a black screen hang. Akira's kick sometimes
55  sends the opponent out of the ring from whatever position.
56
57
5835****************************************************************************************************/
5936
6037#include "emu.h"
r25382r25383
170147}
171148
172149static ADDRESS_MAP_START( saturn_mem, AS_PROGRAM, 32, sat_console_state )
173   AM_RANGE(0x00000000, 0x0007ffff) AM_ROM AM_SHARE("share6")  // bios
150   AM_RANGE(0x00000000, 0x0007ffff) AM_ROM AM_SHARE("share6")  AM_WRITENOP // bios
174151   AM_RANGE(0x00100000, 0x0010007f) AM_READWRITE8(saturn_SMPC_r, saturn_SMPC_w,0xffffffff)
175152   AM_RANGE(0x00180000, 0x0018ffff) AM_READWRITE8(saturn_backupram_r, saturn_backupram_w,0xffffffff) AM_SHARE("share1")
176153   AM_RANGE(0x00200000, 0x002fffff) AM_RAM AM_MIRROR(0x20100000) AM_SHARE("workram_l")
r25382r25383
198175//  AM_RANGE(0x22000000, 0x24ffffff) AM_ROM // Cartridge area mirror
199176   AM_RANGE(0x45000000, 0x46ffffff) AM_WRITENOP
200177   AM_RANGE(0x60000000, 0x600003ff) AM_WRITENOP // cache address array
201   AM_RANGE(0xc0000000, 0xc00007ff) AM_RAM // cache data array, Dragon Ball Z sprites relies on this
178   AM_RANGE(0xc0000000, 0xc0000fff) AM_RAM // cache data array, Dragon Ball Z sprites relies on this
202179ADDRESS_MAP_END
203180
204181static ADDRESS_MAP_START( sound_mem, AS_PROGRAM, 16, sat_console_state )
r25382r25383
766743   MCFG_CPU_ADD("audiocpu", M68000, 11289600) //256 x 44100 Hz = 11.2896 MHz
767744   MCFG_CPU_PROGRAM_MAP(sound_mem)
768745
746//   SH-1
747
748//  SMPC MCU, running at 4 MHz (+ custom RTC device that runs at 32.768 KHz)
749
769750   MCFG_MACHINE_START_OVERRIDE(sat_console_state,saturn)
770751   MCFG_MACHINE_RESET_OVERRIDE(sat_console_state,saturn)
771752

Previous 199869 Revisions Next


© 1997-2024 The MAME Team