Previous 199869 Revisions Next

r19149 Monday 26th November, 2012 at 09:56:11 UTC by Robbbert
Fixed MT 02710 [Robbbert]
[src/mame/drivers]astinvad.c

trunk/src/mame/drivers/astinvad.c
r19148r19149
193193UINT32 astinvad_state::screen_update_spaceint(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
194194{
195195   const UINT8 *color_prom = memregion("proms")->base();
196   int offs;
196   offs_t offs,n;
197   UINT8 x,y,data,color;
197198
198199   for (offs = 0; offs < m_videoram.bytes(); offs++)
199200   {
200      UINT8 data = m_videoram[offs];
201      UINT8 color = m_colorram[offs];
201      data = m_videoram[offs];
202      color = m_colorram[offs];
202203
203      UINT8 y = ~offs;
204      UINT8 x = offs >> 8 << 3;
204      if (m_screen_flip)
205      {
206         y = offs;
207         x = ~offs >> 8 << 3;
208      }
209      else
210      {
211         y = ~offs;
212         x = offs >> 8 << 3;
213      }
205214
206215      /* this is almost certainly wrong */
207      offs_t n = ((offs >> 5) & 0xf0) | color;
216      n = ((offs >> 5) & 0xf0) | color;
208217      color = color_prom[n] & 0x07;
209218
210219      plot_byte(machine(), bitmap, y, x, data, color);
r19148r19149
592601   MCFG_CPU_PROGRAM_MAP(kamikaze_map)
593602   MCFG_CPU_IO_MAP(kamikaze_portmap)
594603
595   MCFG_MACHINE_START_OVERRIDE(astinvad_state,kamikaze)
596   MCFG_MACHINE_RESET_OVERRIDE(astinvad_state,kamikaze)
604   MCFG_MACHINE_START_OVERRIDE(astinvad_state, kamikaze)
605   MCFG_MACHINE_RESET_OVERRIDE(astinvad_state, kamikaze)
597606
598607   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf )
599608   MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf )
r19148r19149
625634   MCFG_CPU_ADD("maincpu", Z80, MASTER_CLOCK)        /* a guess */
626635   MCFG_CPU_PROGRAM_MAP(spaceint_map)
627636   MCFG_CPU_IO_MAP(spaceint_portmap)
628   MCFG_CPU_VBLANK_INT_DRIVER("screen", astinvad_state, irq0_line_hold)
637   MCFG_CPU_VBLANK_INT_DRIVER("screen", astinvad_state, irq0_line_hold)
629638
630   MCFG_MACHINE_START_OVERRIDE(astinvad_state,spaceint)
631   MCFG_MACHINE_RESET_OVERRIDE(astinvad_state,spaceint)
639   MCFG_MACHINE_START_OVERRIDE(astinvad_state, spaceint)
640   MCFG_MACHINE_RESET_OVERRIDE(astinvad_state, spaceint)
632641
633642   /* video hardware */
634   MCFG_VIDEO_START_OVERRIDE(astinvad_state,spaceint)
643   MCFG_VIDEO_START_OVERRIDE(astinvad_state, spaceint)
635644
636645   MCFG_SCREEN_ADD("screen", RASTER)
637646   MCFG_SCREEN_SIZE(32*8, 32*8)
r19148r19149
761770 *
762771 *************************************/
763772
764GAME( 1979, kamikaze, 0,        kamikaze, kamikaze, astinvad_state, kamikaze, ROT270, "Leijac Corporation", "Kamikaze",      GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
765GAME( 1980, astinvad, kamikaze, kamikaze, astinvad, astinvad_state, kamikaze, ROT270, "Leijac Corporation (Stern Electronics license)", "Astro Invader", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
766GAME( 19??, kosmokil, kamikaze, kamikaze, kamikaze, astinvad_state, kamikaze, ROT270, "bootleg",            "Kosmo Killer",  GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) // says >BEM< Mi Italy but it looks hacked in, dif revision of game tho.
767GAME( 1979, spcking2, 0,        spcking2, spcking2, astinvad_state, spcking2, ROT270, "Konami",             "Space King 2",  GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
768GAME( 1980, spaceint, 0,        spaceint, spaceint, driver_device, 0,        ROT90,  "Shoei",              "Space Intruder", GAME_IMPERFECT_SOUND | GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE )
769GAME( 1980, spaceintj,spaceint, spaceint, spaceintj, driver_device,0,        ROT90,  "Shoei",              "Space Intruder (Japan)", GAME_IMPERFECT_SOUND | GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE )
773GAME( 1979, kamikaze, 0,        kamikaze, kamikaze,  astinvad_state, kamikaze, ROT270, "Leijac Corporation", "Kamikaze", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
774GAME( 1980, astinvad, kamikaze, kamikaze, astinvad,  astinvad_state, kamikaze, ROT270, "Leijac Corporation (Stern Electronics license)", "Astro Invader", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
775GAME( 19??, kosmokil, kamikaze, kamikaze, kamikaze,  astinvad_state, kamikaze, ROT270, "bootleg", "Kosmo Killer", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) // says >BEM< Mi Italy but it looks hacked in, dif revision of game tho.
776GAME( 1979, spcking2, 0,        spcking2, spcking2,  astinvad_state, spcking2, ROT270, "Konami", "Space King 2", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
777GAME( 1980, spaceint, 0,        spaceint, spaceint,  driver_device,  0,        ROT90,  "Shoei", "Space Intruder", GAME_IMPERFECT_SOUND | GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE )
778GAME( 1980, spaceintj,spaceint, spaceint, spaceintj, driver_device,  0,        ROT90,  "Shoei", "Space Intruder (Japan)", GAME_IMPERFECT_SOUND | GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE )

Previous 199869 Revisions Next


© 1997-2024 The MAME Team