Previous 199869 Revisions Next

r35019 Saturday 14th February, 2015 at 11:53:44 UTC by Miodrag Milanović
Merge branch 'master' of https://github.com/mamedev/mame
[src/mame/drivers]cchance.c exzisus.c tnzs.c
[src/mame/includes]exzisus.h tnzs.h
[src/mame/machine]tnzs.c
[src/mame/video]exzisus.c

trunk/src/mame/drivers/cchance.c
r243530r243531
185185
186186MACHINE_START_MEMBER(cchance_state,cchance)
187187{
188   save_item(NAME(m_screenflip));
189188   save_item(NAME(m_hop_io));
190189   save_item(NAME(m_bell_io));
191190}
192191
193192MACHINE_RESET_MEMBER(cchance_state,cchance)
194193{
195   m_screenflip = 0;
196194   m_mcu_type = -1;
197195   m_hop_io = 0;
198196   m_bell_io = 0;
trunk/src/mame/drivers/exzisus.c
r243530r243531
4646
4747***************************************************************************/
4848
49WRITE8_MEMBER(exzisus_state::exzisus_cpua_bankswitch_w)
49WRITE8_MEMBER(exzisus_state::cpua_bankswitch_w)
5050{
51   UINT8 *RAM = memregion("cpua")->base();
52
5351   if ( (data & 0x0f) != m_cpua_bank )
5452   {
5553      m_cpua_bank = data & 0x0f;
5654      if (m_cpua_bank >= 2)
5755      {
58         membank("bank2")->set_base(&RAM[ 0x10000 + ( (m_cpua_bank - 2) * 0x4000 ) ] );
56         membank("bank2")->set_entry(m_cpua_bank - 2);
5957      }
6058   }
6159
6260   flip_screen_set(data & 0x40);
6361}
6462
65WRITE8_MEMBER(exzisus_state::exzisus_cpub_bankswitch_w)
63WRITE8_MEMBER(exzisus_state::cpub_bankswitch_w)
6664{
67   UINT8 *RAM = memregion("cpub")->base();
68
6965   if ( (data & 0x0f) != m_cpub_bank )
7066   {
7167      m_cpub_bank = data & 0x0f;
7268      if (m_cpub_bank >= 2)
7369      {
74         membank("bank1")->set_base(&RAM[ 0x10000 + ( (m_cpub_bank - 2) * 0x4000 ) ] );
70         membank("bank1")->set_entry(m_cpub_bank - 2);
7571      }
7672   }
7773
7874   flip_screen_set(data & 0x40);
7975}
8076
81WRITE8_MEMBER(exzisus_state::exzisus_coincounter_w)
77WRITE8_MEMBER(exzisus_state::coincounter_w)
8278{
8379   coin_lockout_w(machine(), 0,~data & 0x01);
8480   coin_lockout_w(machine(), 1,~data & 0x02);
r243530r243531
8682   coin_counter_w(machine(), 1,data & 0x08);
8783}
8884
89READ8_MEMBER(exzisus_state::exzisus_sharedram_ab_r)
90{
91   return m_sharedram_ab[offset];
92}
93
94READ8_MEMBER(exzisus_state::exzisus_sharedram_ac_r)
95{
96   return m_sharedram_ac[offset];
97}
98
99WRITE8_MEMBER(exzisus_state::exzisus_sharedram_ab_w)
100{
101   m_sharedram_ab[offset] = data;
102}
103
104WRITE8_MEMBER(exzisus_state::exzisus_sharedram_ac_w)
105{
106   m_sharedram_ac[offset] = data;
107}
108
10985// is it ok that cpub_reset refers to cpuc?
110WRITE8_MEMBER(exzisus_state::exzisus_cpub_reset_w)
86WRITE8_MEMBER(exzisus_state::cpub_reset_w)
11187{
11288   m_cpuc->set_input_line(INPUT_LINE_RESET, PULSE_LINE);
11389}
11490
11591#if 0
116// without exzisus_cpub_reset_w, the following patch would be needed for
92// without cpub_reset_w, the following patch would be needed for
11793// the RAM check to work
11894DRIVER_INIT_MEMBER(exzisus_state,exzisus)
11995{
r243530r243531
137113static ADDRESS_MAP_START( cpua_map, AS_PROGRAM, 8, exzisus_state )
138114   AM_RANGE(0x0000, 0x7fff) AM_ROM
139115   AM_RANGE(0x8000, 0xbfff) AM_ROMBANK("bank2")
140   AM_RANGE(0xc000, 0xc5ff) AM_READWRITE(exzisus_objectram_1_r, exzisus_objectram_1_w) AM_SHARE("objectram1")
141   AM_RANGE(0xc600, 0xdfff) AM_READWRITE(exzisus_videoram_1_r, exzisus_videoram_1_w) AM_SHARE("videoram1")
142   AM_RANGE(0xe000, 0xefff) AM_READWRITE(exzisus_sharedram_ac_r, exzisus_sharedram_ac_w) AM_SHARE("sharedram_ac")
143   AM_RANGE(0xf400, 0xf400) AM_WRITE(exzisus_cpua_bankswitch_w)
144   AM_RANGE(0xf404, 0xf404) AM_WRITE(exzisus_cpub_reset_w) // ??
145   AM_RANGE(0xf800, 0xffff) AM_READWRITE(exzisus_sharedram_ab_r, exzisus_sharedram_ab_w) AM_SHARE("sharedram_ab")
116   AM_RANGE(0xc000, 0xc5ff) AM_RAM AM_SHARE("objectram1")
117   AM_RANGE(0xc600, 0xdfff) AM_RAM AM_SHARE("videoram1")
118   AM_RANGE(0xe000, 0xefff) AM_RAM AM_SHARE("sharedram_ac")
119   AM_RANGE(0xf400, 0xf400) AM_WRITE(cpua_bankswitch_w)
120   AM_RANGE(0xf404, 0xf404) AM_WRITE(cpub_reset_w) // ??
121   AM_RANGE(0xf800, 0xffff) AM_RAM AM_SHARE("sharedram_ab")
146122ADDRESS_MAP_END
147123
148124static ADDRESS_MAP_START( cpub_map, AS_PROGRAM, 8, exzisus_state )
149125   AM_RANGE(0x0000, 0x7fff) AM_ROM
150126   AM_RANGE(0x8000, 0xbfff) AM_ROMBANK("bank1")
151   AM_RANGE(0xc000, 0xc5ff) AM_READWRITE(exzisus_objectram_0_r, exzisus_objectram_0_w) AM_SHARE("objectram0")
152   AM_RANGE(0xc600, 0xdfff) AM_READWRITE(exzisus_videoram_0_r, exzisus_videoram_0_w) AM_SHARE("videoram0")
127   AM_RANGE(0xc000, 0xc5ff) AM_RAM AM_SHARE("objectram0")
128   AM_RANGE(0xc600, 0xdfff) AM_RAM AM_SHARE("videoram0")
153129   AM_RANGE(0xe000, 0xefff) AM_RAM
154130   AM_RANGE(0xf000, 0xf000) AM_READNOP AM_DEVWRITE("tc0140syt", tc0140syt_device, master_port_w)
155131   AM_RANGE(0xf001, 0xf001) AM_DEVREADWRITE("tc0140syt", tc0140syt_device, master_comm_r, master_comm_w)
156132   AM_RANGE(0xf400, 0xf400) AM_READ_PORT("P1")
157   AM_RANGE(0xf400, 0xf400) AM_WRITE(exzisus_cpub_bankswitch_w)
133   AM_RANGE(0xf400, 0xf400) AM_WRITE(cpub_bankswitch_w)
158134   AM_RANGE(0xf401, 0xf401) AM_READ_PORT("P2")
159135   AM_RANGE(0xf402, 0xf402) AM_READ_PORT("SYSTEM")
160   AM_RANGE(0xf402, 0xf402) AM_WRITE(exzisus_coincounter_w)
136   AM_RANGE(0xf402, 0xf402) AM_WRITE(coincounter_w)
161137   AM_RANGE(0xf404, 0xf404) AM_READ_PORT("DSWA")
162138   AM_RANGE(0xf404, 0xf404) AM_WRITENOP // ??
163139   AM_RANGE(0xf405, 0xf405) AM_READ_PORT("DSWB")
164   AM_RANGE(0xf800, 0xffff) AM_READWRITE(exzisus_sharedram_ab_r, exzisus_sharedram_ab_w)
140   AM_RANGE(0xf800, 0xffff) AM_RAM AM_SHARE("sharedram_ab")
165141ADDRESS_MAP_END
166142
167143static ADDRESS_MAP_START( cpuc_map, AS_PROGRAM, 8, exzisus_state )
168144   AM_RANGE(0x0000, 0x7fff) AM_ROM
169   AM_RANGE(0x8000, 0x85ff) AM_READWRITE(exzisus_objectram_1_r, exzisus_objectram_1_w)
170   AM_RANGE(0x8600, 0x9fff) AM_READWRITE(exzisus_videoram_1_r, exzisus_videoram_1_w)
171   AM_RANGE(0xa000, 0xafff) AM_READWRITE(exzisus_sharedram_ac_r, exzisus_sharedram_ac_w)
145   AM_RANGE(0x8000, 0x85ff) AM_RAM AM_SHARE("objectram1")
146   AM_RANGE(0x8600, 0x9fff) AM_RAM AM_SHARE("videoram1")
147   AM_RANGE(0xa000, 0xafff) AM_RAM AM_SHARE("sharedram_ac")
172148   AM_RANGE(0xb000, 0xbfff) AM_RAM
173149ADDRESS_MAP_END
174150
r243530r243531
234210
235211***************************************************************************/
236212
213void exzisus_state::machine_start()
214{
215   membank("bank1")->configure_entries(0, 16, memregion("cpub")->base() + 0x10000, 0x4000);
216   membank("bank2")->configure_entries(0, 16, memregion("cpua")->base() + 0x10000, 0x4000);
217   
218   save_item(NAME(m_cpua_bank));
219   save_item(NAME(m_cpub_bank));
220}
221
237222static const gfx_layout charlayout =
238223{
239224   8, 8,
r243530r243531
279264   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
280265   MCFG_SCREEN_SIZE(32*8, 32*8)
281266   MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
282   MCFG_SCREEN_UPDATE_DRIVER(exzisus_state, screen_update_exzisus)
267   MCFG_SCREEN_UPDATE_DRIVER(exzisus_state, screen_update)
283268   MCFG_SCREEN_PALETTE("palette")
284269
285270   MCFG_GFXDECODE_ADD("gfxdecode", "palette", exzisus)
r243530r243531
424409   ROM_LOAD( "b23-05.16l", 0x00800, 0x00400, CRC(87f0f69a) SHA1(37df6fd56245fab9beaabfd86fd8f95d7c42c2a5) )
425410ROM_END
426411
427GAME( 1987, exzisus,  0,       exzisus, exzisus, driver_device, 0, ROT0, "Taito Corporation", "Exzisus (Japan, dedicated)",  0 )
428GAME( 1987, exzisusa, exzisus, exzisus, exzisus, driver_device, 0, ROT0, "Taito Corporation", "Exzisus (Japan, conversion)", 0 )
429GAME( 1987, exzisust, exzisus, exzisus, exzisus, driver_device, 0, ROT0, "Taito Corporation (TAD license)", "Exzisus (TAD license)", 0 )
412GAME( 1987, exzisus,  0,       exzisus, exzisus, driver_device, 0, ROT0, "Taito Corporation", "Exzisus (Japan, dedicated)",  GAME_SUPPORTS_SAVE )
413GAME( 1987, exzisusa, exzisus, exzisus, exzisus, driver_device, 0, ROT0, "Taito Corporation", "Exzisus (Japan, conversion)", GAME_SUPPORTS_SAVE )
414GAME( 1987, exzisust, exzisus, exzisus, exzisus, driver_device, 0, ROT0, "Taito Corporation (TAD license)", "Exzisus (TAD license)", GAME_SUPPORTS_SAVE )
trunk/src/mame/drivers/tnzs.c
r243530r243531
622622#include "emu.h"
623623#include "cpu/z80/z80.h"
624624#include "includes/taitoipt.h"
625#include "cpu/mcs48/mcs48.h"
626625#include "sound/2203intf.h"
627#include "sound/dac.h"
628#include "sound/samples.h"
629626#include "includes/tnzs.h"
630627#include "sound/2151intf.h"
631628
r243530r243531
26602657
26612658
26622659//    YEAR, NAME,      PARENT,   MACHINE,  INPUT,    INIT,     MONITOR,COMPANY,FULLNAME,FLAGS
2663GAME( 1987, plumppop,  0,        drtoppel, plumppop, tnzs_state,    plumpop,  ROT0,   "Taito Corporation", "Plump Pop (Japan)", 0 )
2664GAME( 1992, jpopnics,  0,        jpopnics, jpopnics, driver_device, 0,        ROT0,   "Nics",              "Jumping Pop (Nics, Korean hack of Plump Pop)", GAME_IMPERFECT_GRAPHICS )
2660GAME( 1987, plumppop,  0,        drtoppel, plumppop, tnzs_state,    plumpop,  ROT0,   "Taito Corporation", "Plump Pop (Japan)", GAME_SUPPORTS_SAVE )
2661GAME( 1992, jpopnics,  0,        jpopnics, jpopnics, driver_device, 0,        ROT0,   "Nics",              "Jumping Pop (Nics, Korean hack of Plump Pop)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE )
26652662
2666GAME( 1987, extrmatn,  0,        arknoid2, extrmatn, tnzs_state,    extrmatn, ROT270, "Taito Corporation Japan",     "Extermination (World)", 0 )
2667GAME( 1987, extrmatnu, extrmatn, arknoid2, extrmatn, tnzs_state,    extrmatn, ROT270, "Taito (World Games license)", "Extermination (US)", 0 )
2668GAME( 1987, extrmatnj, extrmatn, arknoid2, extrmatn, tnzs_state,    extrmatn, ROT270, "Taito Corporation",           "Extermination (Japan)", 0 )
2663GAME( 1987, extrmatn,  0,        arknoid2, extrmatn, tnzs_state,    extrmatn, ROT270, "Taito Corporation Japan",     "Extermination (World)", GAME_SUPPORTS_SAVE )
2664GAME( 1987, extrmatnu, extrmatn, arknoid2, extrmatn, tnzs_state,    extrmatn, ROT270, "Taito (World Games license)", "Extermination (US)", GAME_SUPPORTS_SAVE )
2665GAME( 1987, extrmatnj, extrmatn, arknoid2, extrmatn, tnzs_state,    extrmatn, ROT270, "Taito Corporation",           "Extermination (Japan)", GAME_SUPPORTS_SAVE )
26692666
2670GAME( 1987, arknoid2,  0,        arknoid2, arknoid2, tnzs_state,    arknoid2, ROT270, "Taito Corporation Japan",                     "Arkanoid - Revenge of DOH (World)", 0 )
2671GAME( 1987, arknoid2u, arknoid2, arknoid2, arknid2u, tnzs_state,    arknoid2, ROT270, "Taito America Corporation (Romstar license)", "Arkanoid - Revenge of DOH (US)", 0 )
2672GAME( 1987, arknoid2j, arknoid2, arknoid2, arknid2u, tnzs_state,    arknoid2, ROT270, "Taito Corporation",                           "Arkanoid - Revenge of DOH (Japan)", 0 )
2673GAME( 1987, arknoid2b, arknoid2, arknoid2, arknid2u, tnzs_state,    arknoid2, ROT270, "bootleg",                                     "Arkanoid - Revenge of DOH (Japan bootleg)", 0 )
2667GAME( 1987, arknoid2,  0,        arknoid2, arknoid2, tnzs_state,    arknoid2, ROT270, "Taito Corporation Japan",                     "Arkanoid - Revenge of DOH (World)", GAME_SUPPORTS_SAVE )
2668GAME( 1987, arknoid2u, arknoid2, arknoid2, arknid2u, tnzs_state,    arknoid2, ROT270, "Taito America Corporation (Romstar license)", "Arkanoid - Revenge of DOH (US)", GAME_SUPPORTS_SAVE )
2669GAME( 1987, arknoid2j, arknoid2, arknoid2, arknid2u, tnzs_state,    arknoid2, ROT270, "Taito Corporation",                           "Arkanoid - Revenge of DOH (Japan)", GAME_SUPPORTS_SAVE )
2670GAME( 1987, arknoid2b, arknoid2, arknoid2, arknid2u, tnzs_state,    arknoid2, ROT270, "bootleg",                                     "Arkanoid - Revenge of DOH (Japan bootleg)", GAME_SUPPORTS_SAVE )
26742671
2675GAME( 1987, drtoppel,  0,        drtoppel, drtoppel, tnzs_state,    drtoppel, ROT90,  "Kaneko / Taito Corporation Japan",   "Dr. Toppel's Adventure (World)", 0 ) /* Possible region hack */
2676GAME( 1987, drtoppelu, drtoppel, drtoppel, drtopplu, tnzs_state,    drtoppel, ROT90,  "Kaneko / Taito America Corporation", "Dr. Toppel's Adventure (US)", 0 ) /* Possible region hack */
2677GAME( 1987, drtoppelj, drtoppel, drtoppel, drtopplu, tnzs_state,    drtoppel, ROT90,  "Kaneko / Taito Corporation",         "Dr. Toppel's Tankentai (Japan)", 0 )
2672GAME( 1987, drtoppel,  0,        drtoppel, drtoppel, tnzs_state,    drtoppel, ROT90,  "Kaneko / Taito Corporation Japan",   "Dr. Toppel's Adventure (World)", GAME_SUPPORTS_SAVE ) /* Possible region hack */
2673GAME( 1987, drtoppelu, drtoppel, drtoppel, drtopplu, tnzs_state,    drtoppel, ROT90,  "Kaneko / Taito America Corporation", "Dr. Toppel's Adventure (US)", GAME_SUPPORTS_SAVE ) /* Possible region hack */
2674GAME( 1987, drtoppelj, drtoppel, drtoppel, drtopplu, tnzs_state,    drtoppel, ROT90,  "Kaneko / Taito Corporation",         "Dr. Toppel's Tankentai (Japan)", GAME_SUPPORTS_SAVE )
26782675
2679GAME( 1988, kageki,    0,        kageki,   kageki,   tnzs_state,    kageki,   ROT90,  "Kaneko / Taito America Corporation (Romstar license)", "Kageki (US)", 0 )
2680GAME( 1988, kagekij,   kageki,   kageki,   kagekij,  tnzs_state,    kageki,   ROT90,  "Kaneko / Taito Corporation",                           "Kageki (Japan)", 0 )
2681GAME( 1992, kagekih,   kageki,   kageki,   kageki,   tnzs_state,    kageki,   ROT90,  "hack",                                                 "Kageki (hack)", 0 ) // date is hacked at least, might also be a Japan set hacked to show english
2676GAME( 1988, kageki,    0,        kageki,   kageki,   tnzs_state,    kageki,   ROT90,  "Kaneko / Taito America Corporation (Romstar license)", "Kageki (US)", GAME_SUPPORTS_SAVE )
2677GAME( 1988, kagekij,   kageki,   kageki,   kagekij,  tnzs_state,    kageki,   ROT90,  "Kaneko / Taito Corporation",                           "Kageki (Japan)", GAME_SUPPORTS_SAVE )
2678GAME( 1992, kagekih,   kageki,   kageki,   kageki,   tnzs_state,    kageki,   ROT90,  "hack",                                                 "Kageki (hack)", GAME_SUPPORTS_SAVE ) // date is hacked at least, might also be a Japan set hacked to show english
26822679
2683GAME( 1988, chukatai,  0,        tnzs,     chukatai, tnzs_state,    chukatai, ROT0,   "Taito Corporation Japan",   "Chuka Taisen (World)", 0 ) /* Possible region hack */
2684GAME( 1988, chukataiu, chukatai, tnzs,     chukatau, tnzs_state,    chukatai, ROT0,   "Taito America Corporation", "Chuka Taisen (US)", 0 ) /* Possible region hack */
2685GAME( 1988, chukataij, chukatai, tnzs,     chukatau, tnzs_state,    chukatai, ROT0,   "Taito Corporation",         "Chuka Taisen (Japan)", 0 )
2680GAME( 1988, chukatai,  0,        tnzs,     chukatai, tnzs_state,    chukatai, ROT0,   "Taito Corporation Japan",   "Chuka Taisen (World)", GAME_SUPPORTS_SAVE ) /* Possible region hack */
2681GAME( 1988, chukataiu, chukatai, tnzs,     chukatau, tnzs_state,    chukatai, ROT0,   "Taito America Corporation", "Chuka Taisen (US)", GAME_SUPPORTS_SAVE ) /* Possible region hack */
2682GAME( 1988, chukataij, chukatai, tnzs,     chukatau, tnzs_state,    chukatai, ROT0,   "Taito Corporation",         "Chuka Taisen (Japan)", GAME_SUPPORTS_SAVE )
26862683
2687GAME( 1988, tnzs,      0,        tnzsb,    tnzs,     tnzs_state,    tnzsb,    ROT0,   "Taito Corporation Japan", "The NewZealand Story (World, new version) (newer PCB)", 0 )
2688GAME( 1988, tnzsj,     tnzs,     tnzsb,    tnzsj,    tnzs_state,    tnzsb,    ROT0,   "Taito Corporation",       "The NewZealand Story (Japan, new version) (newer PCB)", 0 )
2689GAME( 1988, tnzsjo,    tnzs,     tnzs,     tnzsjo,   tnzs_state,    tnzs,     ROT0,   "Taito Corporation",       "The NewZealand Story (Japan, old version) (older PCB)", 0 )
2690GAME( 1988, tnzso,     tnzs,     tnzs,     tnzsop,   tnzs_state,    tnzs,     ROT0,   "Taito Corporation Japan", "The NewZealand Story (World, old version) (older PCB)", 0 )
2691GAME( 1988, tnzsop,    tnzs,     tnzs,     tnzsop,   tnzs_state,    tnzs,     ROT0,   "Taito Corporation Japan", "The NewZealand Story (World, prototype?) (older PCB)", 0 )
2684GAME( 1988, tnzs,      0,        tnzsb,    tnzs,     tnzs_state,    tnzsb,    ROT0,   "Taito Corporation Japan", "The NewZealand Story (World, new version) (newer PCB)", GAME_SUPPORTS_SAVE )
2685GAME( 1988, tnzsj,     tnzs,     tnzsb,    tnzsj,    tnzs_state,    tnzsb,    ROT0,   "Taito Corporation",       "The NewZealand Story (Japan, new version) (newer PCB)", GAME_SUPPORTS_SAVE )
2686GAME( 1988, tnzsjo,    tnzs,     tnzs,     tnzsjo,   tnzs_state,    tnzs,     ROT0,   "Taito Corporation",       "The NewZealand Story (Japan, old version) (older PCB)", GAME_SUPPORTS_SAVE )
2687GAME( 1988, tnzso,     tnzs,     tnzs,     tnzsop,   tnzs_state,    tnzs,     ROT0,   "Taito Corporation Japan", "The NewZealand Story (World, old version) (older PCB)", GAME_SUPPORTS_SAVE )
2688GAME( 1988, tnzsop,    tnzs,     tnzs,     tnzsop,   tnzs_state,    tnzs,     ROT0,   "Taito Corporation Japan", "The NewZealand Story (World, prototype?) (older PCB)", GAME_SUPPORTS_SAVE )
26922689
2693GAME( 1988, kabukiz,   0,        kabukiz,  kabukiz,  tnzs_state,    kabukiz,  ROT0,   "Kaneko / Taito Corporation Japan", "Kabuki-Z (World)", 0 )
2694GAME( 1988, kabukizj,  kabukiz,  kabukiz,  kabukizj, tnzs_state,    kabukiz,  ROT0,   "Kaneko / Taito Corporation",       "Kabuki-Z (Japan)", 0 )
2690GAME( 1988, kabukiz,   0,        kabukiz,  kabukiz,  tnzs_state,    kabukiz,  ROT0,   "Kaneko / Taito Corporation Japan", "Kabuki-Z (World)", GAME_SUPPORTS_SAVE )
2691GAME( 1988, kabukizj,  kabukiz,  kabukiz,  kabukizj, tnzs_state,    kabukiz,  ROT0,   "Kaneko / Taito Corporation",       "Kabuki-Z (Japan)", GAME_SUPPORTS_SAVE )
26952692
2696GAME( 1989, insectx,   0,        insectx,  insectx,  tnzs_state,    insectx,  ROT0,   "Taito Corporation Japan", "Insector X (World)", 0 )
2697GAME( 1989, insectxj,  insectx,  insectx,  insectxj, tnzs_state,    insectx,  ROT0,   "Taito Corporation",       "Insector X (Japan)", 0 )
2693GAME( 1989, insectx,   0,        insectx,  insectx,  tnzs_state,    insectx,  ROT0,   "Taito Corporation Japan", "Insector X (World)", GAME_SUPPORTS_SAVE )
2694GAME( 1989, insectxj,  insectx,  insectx,  insectxj, tnzs_state,    insectx,  ROT0,   "Taito Corporation",       "Insector X (Japan)", GAME_SUPPORTS_SAVE )
trunk/src/mame/includes/exzisus.h
r243530r243531
33public:
44   exzisus_state(const machine_config &mconfig, device_type type, const char *tag)
55      : driver_device(mconfig, type, tag),
6      m_cpuc(*this, "cpuc"),
7      m_gfxdecode(*this, "gfxdecode"),
8      m_palette(*this, "palette"),
69      m_objectram1(*this, "objectram1"),
710      m_videoram1(*this, "videoram1"),
811      m_sharedram_ac(*this, "sharedram_ac"),
912      m_sharedram_ab(*this, "sharedram_ab"),
1013      m_objectram0(*this, "objectram0"),
11      m_videoram0(*this, "videoram0"),
12      m_cpuc(*this, "cpuc"),
13      m_gfxdecode(*this, "gfxdecode"),
14      m_palette(*this, "palette") { }
14      m_videoram0(*this, "videoram0") { }
1515
16   required_device<cpu_device> m_cpuc;
17   required_device<gfxdecode_device> m_gfxdecode;
18   required_device<palette_device> m_palette;
19   
1620   required_shared_ptr<UINT8> m_objectram1;
1721   required_shared_ptr<UINT8> m_videoram1;
1822   required_shared_ptr<UINT8> m_sharedram_ac;
1923   required_shared_ptr<UINT8> m_sharedram_ab;
2024   required_shared_ptr<UINT8> m_objectram0;
2125   required_shared_ptr<UINT8> m_videoram0;
22   required_device<cpu_device> m_cpuc;
23   required_device<gfxdecode_device> m_gfxdecode;
24   required_device<palette_device> m_palette;
2526
2627   int m_cpua_bank;
2728   int m_cpub_bank;
2829
29   DECLARE_WRITE8_MEMBER(exzisus_cpua_bankswitch_w);
30   DECLARE_WRITE8_MEMBER(exzisus_cpub_bankswitch_w);
31   DECLARE_WRITE8_MEMBER(exzisus_coincounter_w);
32   DECLARE_READ8_MEMBER(exzisus_sharedram_ab_r);
33   DECLARE_READ8_MEMBER(exzisus_sharedram_ac_r);
34   DECLARE_WRITE8_MEMBER(exzisus_sharedram_ab_w);
35   DECLARE_WRITE8_MEMBER(exzisus_sharedram_ac_w);
36   DECLARE_WRITE8_MEMBER(exzisus_cpub_reset_w);
37   DECLARE_READ8_MEMBER(exzisus_videoram_0_r);
38   DECLARE_READ8_MEMBER(exzisus_videoram_1_r);
39   DECLARE_READ8_MEMBER(exzisus_objectram_0_r);
40   DECLARE_READ8_MEMBER(exzisus_objectram_1_r);
41   DECLARE_WRITE8_MEMBER(exzisus_videoram_0_w);
42   DECLARE_WRITE8_MEMBER(exzisus_videoram_1_w);
43   DECLARE_WRITE8_MEMBER(exzisus_objectram_0_w);
44   DECLARE_WRITE8_MEMBER(exzisus_objectram_1_w);
45   UINT32 screen_update_exzisus(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
30   DECLARE_WRITE8_MEMBER(cpua_bankswitch_w);
31   DECLARE_WRITE8_MEMBER(cpub_bankswitch_w);
32   DECLARE_WRITE8_MEMBER(coincounter_w);
33   DECLARE_WRITE8_MEMBER(cpub_reset_w);
34   
35   virtual void machine_start();
36   
37   UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
4638};
trunk/src/mame/includes/tnzs.h
r243530r243531
2525public:
2626   tnzs_state(const machine_config &mconfig, device_type type, const char *tag)
2727      : driver_device(mconfig, type, tag),
28      m_maincpu(*this, "maincpu"),
2829      m_audiocpu(*this, "audiocpu"),
2930      m_subcpu(*this, "sub"),
3031      m_mcu(*this, "mcu"),
31      m_maincpu(*this, "maincpu"),
3232      m_seta001(*this, "spritegen"),
3333      m_dac(*this, "dac"),
3434      m_samples(*this, "samples"),
3535      m_palette(*this, "palette"),
3636      m_mainbank(*this, "mainbank")
3737      { }
38   
39   /* devices */
40   required_device<cpu_device> m_maincpu;
41   optional_device<cpu_device> m_audiocpu;
42   optional_device<cpu_device> m_subcpu;
43   optional_device<upi41_cpu_device> m_mcu;
44   optional_device<seta001_device> m_seta001;
45   optional_device<dac_device> m_dac;
46   optional_device<samples_device> m_samples;
47   required_device<palette_device> m_palette;
48   optional_device<address_map_bank_device> m_mainbank;
3849
39   /* video-related */
40   int      m_screenflip;
41
4250   /* sound-related */
4351   INT16    *m_sampledata[MAX_SAMPLES];
4452   int      m_samplesize[MAX_SAMPLES];
r243530r243531
5967   UINT8    m_mcu_credits;
6068   int      m_bank2;
6169
62   UINT8*   m_ROM;
63
64   /* devices */
65   optional_device<cpu_device> m_audiocpu;
66   optional_device<cpu_device> m_subcpu;
67   optional_device<upi41_cpu_device> m_mcu;
6870   DECLARE_WRITE8_MEMBER(tnzsb_sound_command_w);
6971   DECLARE_WRITE8_MEMBER(jpopnics_subbankswitch_w);
7072   DECLARE_READ8_MEMBER(tnzs_port1_r);
r243530r243531
8688   DECLARE_WRITE8_MEMBER(kageki_csport_w);
8789   DECLARE_WRITE8_MEMBER(kabukiz_sound_bank_w);
8890   DECLARE_WRITE8_MEMBER(kabukiz_sample_w);
91   DECLARE_WRITE_LINE_MEMBER(irqhandler);
8992
9093   SAMPLES_START_CB_MEMBER(kageki_init_samples);
9194
r243530r243531
104107   DECLARE_PALETTE_INIT(arknoid2);
105108   DECLARE_MACHINE_START(tnzs_common);
106109   DECLARE_MACHINE_RESET(jpopnics);
110   
107111   UINT32 screen_update_tnzs(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
108112   void screen_eof_tnzs(screen_device &screen, bool state);
113   
109114   INTERRUPT_GEN_MEMBER(arknoid2_interrupt);
110115   TIMER_CALLBACK_MEMBER(kludge_callback);
116   
111117   void tnzs_postload();
112   void mcu_reset(  );
113   void mcu_handle_coins( int coin );
114   DECLARE_WRITE_LINE_MEMBER(irqhandler);
115   required_device<cpu_device> m_maincpu;
116   optional_device<seta001_device> m_seta001;
117   optional_device<dac_device> m_dac;
118   optional_device<samples_device> m_samples;
119   required_device<palette_device> m_palette;
120   optional_device<address_map_bank_device> m_mainbank;
118   void mcu_reset();
119   void mcu_handle_coins(int coin);
121120};
trunk/src/mame/machine/tnzs.c
r243530r243531
624624         break;
625625   }
626626
627   m_screenflip = 0;
628627   m_kageki_csport_sel = 0;
629628   m_input_select = 0;
630629   m_mcu_readcredits = 0;  // this might belong to mcu_reset
r243530r243531
633632
634633MACHINE_RESET_MEMBER(tnzs_state,jpopnics)
635634{
636   m_screenflip = 0;
637635   m_mcu_type = -1;
638636}
639637
640void tnzs_state::tnzs_postload()
641{
642   membank("subbank")->set_entry(m_bank2);
643}
644638
645
646639MACHINE_START_MEMBER(tnzs_state,tnzs_common)
647640{
648641   UINT8 *SUB = memregion("sub")->base();
649   m_ROM = memregion("maincpu")->base();
650
642   
651643   membank("subbank")->configure_entries(0, 4, &SUB[0x08000], 0x2000);
652644   membank("subbank")->set_entry(m_bank2);
653645
654646   m_bank2 = 0;
655647   m_mainbank->set_bank(2);
656648
657   save_item(NAME(m_screenflip));
658649   save_item(NAME(m_bank2));
659
660   machine().save().register_postload(save_prepost_delegate(FUNC(tnzs_state::tnzs_postload), this));
661650}
662651
663652MACHINE_START_MEMBER(tnzs_state,tnzs)
trunk/src/mame/video/exzisus.c
r243530r243531
1313
1414
1515/***************************************************************************
16  Memory handlers
17***************************************************************************/
18
19READ8_MEMBER(exzisus_state::exzisus_videoram_0_r)
20{
21   return m_videoram0[offset];
22}
23
24
25READ8_MEMBER(exzisus_state::exzisus_videoram_1_r)
26{
27   return m_videoram1[offset];
28}
29
30
31READ8_MEMBER(exzisus_state::exzisus_objectram_0_r)
32{
33   return m_objectram0[offset];
34}
35
36
37READ8_MEMBER(exzisus_state::exzisus_objectram_1_r)
38{
39   return m_objectram1[offset];
40}
41
42
43WRITE8_MEMBER(exzisus_state::exzisus_videoram_0_w)
44{
45   m_videoram0[offset] = data;
46}
47
48
49WRITE8_MEMBER(exzisus_state::exzisus_videoram_1_w)
50{
51   m_videoram1[offset] = data;
52}
53
54
55WRITE8_MEMBER(exzisus_state::exzisus_objectram_0_w)
56{
57   m_objectram0[offset] = data;
58}
59
60
61WRITE8_MEMBER(exzisus_state::exzisus_objectram_1_w)
62{
63   m_objectram1[offset] = data;
64}
65
66
67/***************************************************************************
6816  Screen refresh
6917***************************************************************************/
7018
71UINT32 exzisus_state::screen_update_exzisus(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
19UINT32 exzisus_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
7220{
7321   int offs;
7422   int sx, sy, xc, yc;


Previous 199869 Revisions Next


© 1997-2024 The MAME Team