Previous 199869 Revisions Next

r36266 Thursday 5th March, 2015 at 17:26:32 UTC by Osso
nova2001.c: enabled save state support (nw)
[src/mame/drivers]nova2001.c
[src/mame/includes]nova2001.h

trunk/src/mame/drivers/nova2001.c
r244777r244778
994994 *************************************/
995995
996996//    YEAR, NAME,      PARENT,   MACHINE,  INPUT,    INIT,     MONITOR,COMPANY,FULLNAME,FLAGS
997GAME( 1983, nova2001,  0,        nova2001, nova2001, driver_device, 0,        ROT0,   "UPL", "Nova 2001 (Japan)", 0 )
998GAME( 1983, nova2001u, nova2001, nova2001, nova2001, driver_device, 0,        ROT0,   "UPL (Universal license)", "Nova 2001 (US)", 0 )
999GAME( 1984, ninjakun,  0,        ninjakun, ninjakun, driver_device, 0,        ROT0,   "UPL (Taito license)", "Ninjakun Majou no Bouken", 0 )
1000GAME( 1985, pkunwar,   0,        pkunwar,  pkunwar, nova2001_state,  pkunwar,  ROT0,   "UPL", "Penguin-Kun Wars (US)", 0 )
1001GAME( 1985, pkunwarj,  pkunwar,  pkunwar,  pkunwar, nova2001_state,  pkunwar,  ROT0,   "UPL", "Penguin-Kun Wars (Japan)", 0 )
1002GAME( 1985, raiders5,  0,        raiders5, raiders5, nova2001_state, raiders5, ROT0,   "UPL", "Raiders5", 0 )
1003GAME( 1985, raiders5t, raiders5, raiders5, raiders5, nova2001_state, raiders5, ROT0,   "UPL (Taito license)", "Raiders5 (Japan)", 0 )
997GAME( 1983, nova2001,  0,        nova2001, nova2001, driver_device, 0,        ROT0,   "UPL", "Nova 2001 (Japan)", GAME_SUPPORTS_SAVE )
998GAME( 1983, nova2001u, nova2001, nova2001, nova2001, driver_device, 0,        ROT0,   "UPL (Universal license)", "Nova 2001 (US)", GAME_SUPPORTS_SAVE )
999GAME( 1984, ninjakun,  0,        ninjakun, ninjakun, driver_device, 0,        ROT0,   "UPL (Taito license)", "Ninjakun Majou no Bouken", GAME_SUPPORTS_SAVE )
1000GAME( 1985, pkunwar,   0,        pkunwar,  pkunwar, nova2001_state,  pkunwar,  ROT0,   "UPL", "Penguin-Kun Wars (US)", GAME_SUPPORTS_SAVE )
1001GAME( 1985, pkunwarj,  pkunwar,  pkunwar,  pkunwar, nova2001_state,  pkunwar,  ROT0,   "UPL", "Penguin-Kun Wars (Japan)", GAME_SUPPORTS_SAVE )
1002GAME( 1985, raiders5,  0,        raiders5, raiders5, nova2001_state, raiders5, ROT0,   "UPL", "Raiders5", GAME_SUPPORTS_SAVE )
1003GAME( 1985, raiders5t, raiders5, raiders5, raiders5, nova2001_state, raiders5, ROT0,   "UPL (Taito license)", "Raiders5 (Japan)", GAME_SUPPORTS_SAVE )
trunk/src/mame/includes/nova2001.h
r244777r244778
33public:
44   nova2001_state(const machine_config &mconfig, device_type type, const char *tag)
55      : driver_device(mconfig, type, tag),
6      m_maincpu(*this, "maincpu"),
7      m_gfxdecode(*this, "gfxdecode"),
8      m_palette(*this, "palette"),
69      m_fg_videoram(*this, "fg_videoram"),
710      m_bg_videoram(*this, "bg_videoram"),
8      m_spriteram(*this, "spriteram"),
9      m_maincpu(*this, "maincpu"),
10      m_gfxdecode(*this, "gfxdecode"),
11      m_palette(*this, "palette")  { }
11      m_spriteram(*this, "spriteram")  { }
1212
13   UINT8 m_ninjakun_io_a002_ctrl;
13   required_device<cpu_device> m_maincpu;
14   required_device<gfxdecode_device> m_gfxdecode;
15   required_device<palette_device> m_palette;
16
1417   optional_shared_ptr<UINT8> m_fg_videoram;
1518   required_shared_ptr<UINT8> m_bg_videoram;
19   optional_shared_ptr<UINT8> m_spriteram;
20
21   UINT8 m_ninjakun_io_a002_ctrl;
1622   tilemap_t *m_bg_tilemap;
1723   tilemap_t *m_fg_tilemap;
18   optional_shared_ptr<UINT8> m_spriteram;
24
1925   DECLARE_WRITE8_MEMBER(ninjakun_cpu1_io_A002_w);
2026   DECLARE_WRITE8_MEMBER(ninjakun_cpu2_io_A002_w);
2127   DECLARE_WRITE8_MEMBER(ninjakun_paletteram_w);
r244777r244778
2733   DECLARE_WRITE8_MEMBER(nova2001_scroll_y_w);
2834   DECLARE_WRITE8_MEMBER(nova2001_flipscreen_w);
2935   DECLARE_WRITE8_MEMBER(pkunwar_flipscreen_w);
36
3037   DECLARE_CUSTOM_INPUT_MEMBER(ninjakun_io_A002_ctrl_r);
38
3139   DECLARE_DRIVER_INIT(raiders5);
3240   DECLARE_DRIVER_INIT(pkunwar);
41   DECLARE_VIDEO_START(nova2001);
42   DECLARE_PALETTE_INIT(nova2001);
43   DECLARE_MACHINE_START(ninjakun);
44   DECLARE_VIDEO_START(ninjakun);
45   DECLARE_VIDEO_START(pkunwar);
46   DECLARE_VIDEO_START(raiders5);
47
3348   TILE_GET_INFO_MEMBER(nova2001_get_bg_tile_info);
3449   TILE_GET_INFO_MEMBER(nova2001_get_fg_tile_info);
3550   TILE_GET_INFO_MEMBER(ninjakun_get_bg_tile_info);
r244777r244778
3752   TILE_GET_INFO_MEMBER(pkunwar_get_bg_tile_info);
3853   TILE_GET_INFO_MEMBER(raiders5_get_bg_tile_info);
3954   TILE_GET_INFO_MEMBER(raiders5_get_fg_tile_info);
40   DECLARE_VIDEO_START(nova2001);
41   DECLARE_PALETTE_INIT(nova2001);
42   DECLARE_MACHINE_START(ninjakun);
43   DECLARE_VIDEO_START(ninjakun);
44   DECLARE_VIDEO_START(pkunwar);
45   DECLARE_VIDEO_START(raiders5);
55
4656   UINT32 screen_update_nova2001(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
4757   UINT32 screen_update_ninjakun(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
4858   UINT32 screen_update_pkunwar(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
r244777r244778
5060   void nova2001_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
5161   void pkunwar_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
5262   void lineswap_gfx_roms(const char *region, const int bit);
53   required_device<cpu_device> m_maincpu;
54   required_device<gfxdecode_device> m_gfxdecode;
55   required_device<palette_device> m_palette;
5663};


Previous 199869 Revisions Next


© 1997-2024 The MAME Team