Previous 199869 Revisions Next

r18119 Monday 24th September, 2012 at 18:57:29 UTC by hap
unclepoo move in progress
[src/mame/drivers]jack.c
[src/mame/includes]jack.h

trunk/src/mame/includes/jack.h
r18118r18119
88{
99public:
1010   jack_state(const machine_config &mconfig, device_type type, const char *tag)
11      : driver_device(mconfig, type, tag) ,
11      : driver_device(mconfig, type, tag),
12      m_maincpu(*this, "maincpu"),
13      m_audiocpu(*this, "audiocpu"),
1214      m_spriteram(*this, "spriteram"),
1315      m_videoram(*this, "videoram"),
14      m_colorram(*this, "colorram"){ }
16      m_colorram(*this, "colorram")
17   { }
1518
16   /* memory pointers */
19   /* device- and memory pointers */
20   required_device<cpu_device> m_maincpu;
21   required_device<cpu_device> m_audiocpu;
1722   required_shared_ptr<UINT8> m_spriteram;
1823   required_shared_ptr<UINT8> m_videoram;
1924   required_shared_ptr<UINT8> m_colorram;
20//  UINT8 *    paletteram;  // currently this uses generic palette handling
2125
2226   /* video-related */
2327   tilemap_t    *m_bg_tilemap;
r18118r18119
2933   int m_question_rom;
3034   int m_remap_address[16];
3135
32
33   /* devices */
34   cpu_device *m_audiocpu;
3536   DECLARE_WRITE8_MEMBER(jack_sh_command_w);
3637   DECLARE_WRITE8_MEMBER(joinem_misc_w);
3738   DECLARE_READ8_MEMBER(striv_question_r);
r18118r18119
4243   DECLARE_WRITE8_MEMBER(jack_flipscreen_w);
4344   DECLARE_CUSTOM_INPUT_MEMBER(sound_check_r);
4445   DECLARE_READ8_MEMBER(timer_r);
46
4547   DECLARE_DRIVER_INIT(zzyzzyxx);
4648   DECLARE_DRIVER_INIT(striv);
4749   DECLARE_DRIVER_INIT(treahunt);
4850   DECLARE_DRIVER_INIT(loverboy);
4951   DECLARE_DRIVER_INIT(jack);
52
5053   TILE_GET_INFO_MEMBER(get_bg_tile_info);
5154   TILEMAP_MAPPER_MEMBER(tilemap_scan_cols_flipy);
5255   TILE_GET_INFO_MEMBER(joinem_get_bg_tile_info);
53   virtual void machine_start();
54   virtual void machine_reset();
55   virtual void video_start();
5656   DECLARE_VIDEO_START(joinem);
5757   DECLARE_PALETTE_INIT(joinem);
58
5859   UINT32 screen_update_jack(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
5960   UINT32 screen_update_joinem(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
61
62   virtual void machine_start();
63   virtual void machine_reset();
64   virtual void video_start();
65
6066   INTERRUPT_GEN_MEMBER(joinem_vblank_irq);
6167};
trunk/src/mame/drivers/jack.c
r18118r18119
164164   AM_RANGE(0xbc00, 0xbfff) AM_RAM_WRITE(jack_colorram_w) AM_SHARE("colorram")
165165ADDRESS_MAP_END
166166
167static ADDRESS_MAP_START( unclepoo_map, AS_PROGRAM, 8, jack_state )
168   AM_RANGE(0x9000, 0x97ff) AM_RAM
169   AM_IMPORT_FROM( joinem_map )
170ADDRESS_MAP_END
167171
172
168173static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, jack_state )
169174   AM_RANGE(0x0000, 0x1fff) AM_ROM
170175   AM_RANGE(0x4000, 0x43ff) AM_RAM
r18118r18119
787792
788793void jack_state::machine_start()
789794{
790
791   m_audiocpu = machine().device<cpu_device>("audiocpu");
792
793795   save_item(NAME(m_joinem_snd_bit));
794796   save_item(NAME(m_question_address));
795797   save_item(NAME(m_question_rom));
r18118r18119
813815   /* basic machine hardware */
814816   MCFG_CPU_ADD("maincpu", Z80, 18000000/6)   /* 3 MHz */
815817   MCFG_CPU_PROGRAM_MAP(jack_map)
816   MCFG_CPU_VBLANK_INT_DRIVER("screen", jack_state, irq0_line_hold) /* jack needs 1 or its too fast */
818   MCFG_CPU_VBLANK_INT_DRIVER("screen", jack_state, irq0_line_hold)
817819
818820   MCFG_CPU_ADD("audiocpu", Z80,18000000/12)   /* 1.5 MHz */
819821   MCFG_CPU_PROGRAM_MAP(sound_map)
r18118r18119
874876MACHINE_CONFIG_END
875877
876878
879static MACHINE_CONFIG_DERIVED( unclepoo, joinem )
880
881   /* basic machine hardware */
882   MCFG_CPU_MODIFY("maincpu")
883   MCFG_CPU_PROGRAM_MAP(unclepoo_map)
884MACHINE_CONFIG_END
885
886
877887static MACHINE_CONFIG_DERIVED( loverboy, jack )
878888
879889   /* basic machine hardware */
r18118r18119
13711381
13721382DRIVER_INIT_MEMBER(jack_state,loverboy)
13731383{
1374
13751384   /* this doesn't make sense.. the startup code, and irq0 have jumps to 0..
13761385       I replace the startup jump with another jump to what appears to be
13771386       the start of the game code.
r18118r18119
14461455GAME( 1981, tripool,  0,        tripool, tripool, jack_state,  jack,     ROT90,  "Noma (Casino Tech license)",  "Tri-Pool (Casino Tech)", GAME_SUPPORTS_SAVE )
14471456GAME( 1981, tripoola, tripool,  tripool, tripool, jack_state,  jack,     ROT90,  "Noma (Costal Games license)", "Tri-Pool (Costal Games)", GAME_SUPPORTS_SAVE )
14481457GAME( 1983, joinem,   0,        joinem,  joinem, jack_state,   zzyzzyxx, ROT90,  "Global Corporation",          "Joinem", GAME_SUPPORTS_SAVE )
1449GAME( 1983, unclepoop, unclepoo, joinem, joinem, jack_state, zzyzzyxx, ROT90, "Diatec", "Uncle Poo (nincompoop version)", GAME_NOT_WORKING )
1458GAME( 1983, unclepoop, unclepoo, unclepoo, joinem, jack_state, zzyzzyxx, ROT90, "Diatec", "Uncle Poo (nincompoop version)", GAME_NOT_WORKING )
14501459GAME( 1983, loverboy, 0,        loverboy,loverboy, jack_state, loverboy, ROT90,  "G.T Enterprise Inc",          "Lover Boy", GAME_SUPPORTS_SAVE )
14511460GAME( 1985, striv,    0,        jack,    striv, jack_state,    striv,    ROT270, "Hara Industries",             "Super Triv", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )

Previous 199869 Revisions Next


© 1997-2024 The MAME Team