Previous 199869 Revisions Next

r29208 Thursday 3rd April, 2014 at 04:15:20 UTC by Angelo Salese
Changed around CPU for Bowling Try, hopeless driver it looks like.
[src/mame/drivers]bowltry.c

trunk/src/mame/drivers/bowltry.c
r29207r29208
55   (c)200? Atlus
66
77   TODO:
8   - needs H83008 core features kicked in to proceed.
8   - Tight loops at 0x60e090-0x60e093, control status from video chip?
9   - YGV631-B ... what's that?
910
1011   ATLUS PCB  BT-208001
1112   ------------------------
r29207r29208
2627
2728
2829#include "emu.h"
29#include "cpu/h8/h83002.h"
30#include "cpu/h8/h83008.h"
3031
32#define HACK_ENABLED 0
3133
3234class bowltry_state : public driver_device
3335{
r29207r29208
3739         m_maincpu(*this, "maincpu")
3840   { }
3941
40   UINT32 screen_update_bowltry(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
42   UINT32 screen_update_bowltry(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
43   int m_test_x;
44   int m_test_y;
45   int m_start_offs;
46#if HACK_ENABLED
47   DECLARE_READ16_MEMBER(hack_r);
48   DECLARE_WRITE16_MEMBER(hack_w);
49   UINT16 m_hack[2];
50#endif
4151
4252protected:
4353   required_device<cpu_device> m_maincpu;
4454public:
4555};
4656
57#if HACK_ENABLED
58READ16_MEMBER(bowltry_state::hack_r)
59{
60   if(offset)
61      return m_hack[1] & ~0x20;
4762
63   m_hack[0]^=1;
64   return m_hack[0];
65}
66
67WRITE16_MEMBER(bowltry_state::hack_w)
68{
69   COMBINE_DATA(&m_hack[offset]);
70}
71#endif
72
4873static ADDRESS_MAP_START( bowltry_map, AS_PROGRAM, 16, bowltry_state )
74   ADDRESS_MAP_UNMAP_HIGH
4975   AM_RANGE( 0x000000, 0x07ffff ) AM_ROM AM_REGION("maincpu", 0)
50   AM_RANGE( 0x080000, 0x08ffff ) AM_RAM
76   AM_RANGE( 0x080000, 0x083fff ) AM_RAM
77#if HACK_ENABLED
78   AM_RANGE( 0x60e090, 0x60e093 ) AM_READWRITE(hack_r,hack_w)
79#endif
5180   AM_RANGE( 0x600000, 0x60ffff ) AM_RAM
52   AM_RANGE( 0xfee000, 0xffffff ) AM_RAM // CPU i/o goes here?
81
5382ADDRESS_MAP_END
5483
5584static INPUT_PORTS_START( bowltry )
5685INPUT_PORTS_END
5786
58UINT32 bowltry_state::screen_update_bowltry(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
87UINT32 bowltry_state::screen_update_bowltry(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
5988{
6089   return 0;
6190}
r29207r29208
6392
6493
6594static MACHINE_CONFIG_START( bowltry, bowltry_state )
66   MCFG_CPU_ADD("maincpu", H83002, 16000000 ) // H83008 (!)
95   MCFG_CPU_ADD("maincpu", H83008, 16000000 )
6796   MCFG_CPU_PROGRAM_MAP( bowltry_map )
6897//   MCFG_CPU_VBLANK_INT_DRIVER("screen", bowltry_state,  irq0_line_hold) // uses vector $64, IMIAB according to the manual (timer/compare B, internal to the CPU)
6998
r29207r29208
73102   MCFG_SCREEN_SIZE(64*8, 32*8)
74103   MCFG_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 32*8-1)
75104   MCFG_SCREEN_UPDATE_DRIVER(bowltry_state, screen_update_bowltry)
76   MCFG_SCREEN_PALETTE("palette")
105   //MCFG_SCREEN_PALETTE("palette")
77106
78   MCFG_PALETTE_ADD("palette", 0x200)
107   //MCFG_PALETTE_ADD("palette", 65536)
79108
80109   /* tt5665 sound */
81110
r29207r29208
85114   ROM_REGION( 0x080000, "maincpu", 0 )
86115   ROM_LOAD16_WORD_SWAP( "u30_v1.00.u30", 0x000000, 0x080000, CRC(2bd47419) SHA1(8fc975340e47ddeedf96e454a6c5372328f28b72) )
87116
88   ROM_REGION( 0x800000, "gfx", 0 )
117   ROM_REGION( 0x800000, "gfx", 0 ) // ???
89118   ROM_LOAD16_BYTE( "u27_v1.00.u27", 0x000000, 0x400000, CRC(80f51c25) SHA1(53c21325e7796197c26ca0cf4f8e51bf1e0bdcd3) )
90119   ROM_LOAD16_BYTE( "u28_v1.00.u28", 0x000001, 0x400000, CRC(9cc8b577) SHA1(6ef5cbb83860f88c9c83d4410034c5b528b2138b) )
91120
92   ROM_REGION( 0x400000, "tt5665", 0 )
121   ROM_REGION( 0x400000, "tt5665", 0 ) // sound
93122   ROM_LOAD( "u24_v1.00.u24", 0x000000, 0x400000, CRC(4e082d58) SHA1(d2eb58bc3d8ade2ea556960013d580f0fb952090) )
94123ROM_END
95124

Previous 199869 Revisions Next


© 1997-2024 The MAME Team