Previous 199869 Revisions Next

r18861 Monday 5th November, 2012 at 14:47:30 UTC by Angelo Salese
Some bare minimum hooks, system is similar but not 100% identical to kyugo.c
[src/mame/drivers]kyugo.c pprobe.c

trunk/src/mame/drivers/kyugo.c
r18860r18861
5656
5757WRITE8_MEMBER(kyugo_state::kyugo_nmi_mask_w)
5858{
59
6059   m_nmi_mask = data & 1;
6160}
6261
r18860r18861
525524
526525INTERRUPT_GEN_MEMBER(kyugo_state::vblank_irq)
527526{
528
529527   if(m_nmi_mask)
530528      device.execute().set_input_line(INPUT_LINE_NMI, PULSE_LINE);
531529}
trunk/src/mame/drivers/pprobe.c
r18860r18861
23232x 2128 static ram (2kx8 ram)
24244x 93422 DRAM (256x4 dram)
25251x 6301 PROM (probably used for background ?)
263x 82s129 Colour PROMS (connected to resistors)
263x 82s129 Colour PROMS (connected to resistors)
2727
2828Clocks measured:
2929
3030Main XTAL 18.432mhz
312x z80 : 18.432 / 6
312x z80 : 18.432 / 6
3232AY8910 : 18.432 / 12
3333Vsync : 60.58hz
3434
r18860r18861
4444{
4545public:
4646   pprobe_state(const machine_config &mconfig, device_type type, const char *tag)
47      : driver_device(mconfig, type, tag)   
47      : driver_device(mconfig, type, tag),
48        m_tx_vram(*this, "tx_vram")
4849   { }
4950
51   required_shared_ptr<UINT8> m_tx_vram;
52
53   UINT8 m_nmi_mask;
54   DECLARE_WRITE8_MEMBER(pprobe_nmi_mask_w);
5055   DECLARE_DRIVER_INIT(pprobe);
5156   UINT32 screen_update_pprobe(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
57   INTERRUPT_GEN_MEMBER(vblank_irq);
5258};
5359
5460
5561
5662UINT32 pprobe_state::screen_update_pprobe(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
5763{
64   gfx_element *gfx = machine().gfx[2];
65   int y,x;
66   int count = 0;
67
68   for (x=0;x<64;x++)
69   {
70      for (y=0;y<32;y++)
71      {
72         UINT16 tile = m_tx_vram[count];
73         //UINT8 col;
74
75         drawgfx_opaque(bitmap,cliprect,gfx,tile,0,0,0,x*8,y*8);
76
77         count++;
78      }
79   }
80
5881   return 0;
5982}
6083
6184
6285static ADDRESS_MAP_START( pprobe_main_map, AS_PROGRAM, 8, pprobe_state )
6386   AM_RANGE(0x0000, 0x7fff) AM_ROM
87   AM_RANGE(0x8000, 0x83ff) AM_RAM // ???
88   AM_RANGE(0x8800, 0x8fff) AM_RAM
89   AM_RANGE(0x9000, 0x93ff) AM_RAM // ???
90   AM_RANGE(0x9800, 0x9fff) AM_RAM
91   AM_RANGE(0xc400, 0xc7ff) AM_RAM // color ram?
92   AM_RANGE(0xc800, 0xcfff) AM_RAM AM_SHARE("tx_vram")
93   AM_RANGE(0xe000, 0xe000) AM_WRITENOP // watchdog
94   AM_RANGE(0xf000, 0xf7ff) AM_RAM AM_SHARE("shared_ram")
6495ADDRESS_MAP_END
6596
97WRITE8_MEMBER(pprobe_state::pprobe_nmi_mask_w)
98{
99   m_nmi_mask = data & 1;
100}
101
102
66103static ADDRESS_MAP_START( pprobe_main_portmap, AS_IO, 8, pprobe_state )
67//   ADDRESS_MAP_GLOBAL_MASK(0xff)
104   ADDRESS_MAP_GLOBAL_MASK(0x07)
105   AM_RANGE(0x00, 0x00) AM_WRITE(pprobe_nmi_mask_w)
106//   0x01 flip screen
107//  0x02 sub cpu halt line
68108ADDRESS_MAP_END
69109
70110
r18860r18861
105145static INPUT_PORTS_START( pprobe )
106146INPUT_PORTS_END
107147
148INTERRUPT_GEN_MEMBER(pprobe_state::vblank_irq)
149{
150   if(m_nmi_mask)
151      device.execute().set_input_line(INPUT_LINE_NMI, PULSE_LINE);
152}
108153
154
109155static MACHINE_CONFIG_START( pprobe, pprobe_state )
110156
111157   /* basic machine hardware */
112158   MCFG_CPU_ADD("maincpu", Z80, XTAL_18_432MHz/6)   /* verified on pcb */
113159   MCFG_CPU_PROGRAM_MAP(pprobe_main_map)
114160   MCFG_CPU_IO_MAP(pprobe_main_portmap)
161   MCFG_CPU_VBLANK_INT_DRIVER("screen", pprobe_state,  vblank_irq)
115162
116163//   MCFG_CPU_ADD("subz80", Z80, XTAL_18_432MHz/6)   /* verified on pcb */
117164
r18860r18861
146193
147194   ROM_REGION( 0x02000, "gfx1", 0 ) // bg tiles
148195   ROM_LOAD( "pb6.bin",  0x0000, 0x2000, CRC(ff309239) SHA1(4e52833fafd54d4502ad09091fbfb1a8a2ff8828) )
149   
196
150197   ROM_REGION( 0x02000, "gfx2", 0 ) // bg tiles
151198   ROM_LOAD( "pb7.bin",  0x0000, 0x2000, BAD_DUMP CRC(1defb6fc) SHA1(f0d57cf8a92c29fef52c8437d0be6edecaf9c5c9) ) // some bad bytes
152199
r18860r18861
170217{
171218}
172219
173GAME( 1984, pprobe,  0,        pprobe,  pprobe, pprobe_state,   pprobe, ROT270, "Kyugo?", "Planet Probe", GAME_IS_SKELETON )
220GAME( 1984, pprobe,  0,        pprobe,  pprobe, pprobe_state,   pprobe, ROT270, "Kyugo?", "Planet Probe", GAME_NOT_WORKING | GAME_NO_SOUND )

Previous 199869 Revisions Next


© 1997-2024 The MAME Team