trunk/src/mame/drivers/astinvad.c
| r19148 | r19149 | |
| 193 | 193 | UINT32 astinvad_state::screen_update_spaceint(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) |
| 194 | 194 | { |
| 195 | 195 | const UINT8 *color_prom = memregion("proms")->base(); |
| 196 | | int offs; |
| 196 | offs_t offs,n; |
| 197 | UINT8 x,y,data,color; |
| 197 | 198 | |
| 198 | 199 | for (offs = 0; offs < m_videoram.bytes(); offs++) |
| 199 | 200 | { |
| 200 | | UINT8 data = m_videoram[offs]; |
| 201 | | UINT8 color = m_colorram[offs]; |
| 201 | data = m_videoram[offs]; |
| 202 | color = m_colorram[offs]; |
| 202 | 203 | |
| 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 | } |
| 205 | 214 | |
| 206 | 215 | /* this is almost certainly wrong */ |
| 207 | | offs_t n = ((offs >> 5) & 0xf0) | color; |
| 216 | n = ((offs >> 5) & 0xf0) | color; |
| 208 | 217 | color = color_prom[n] & 0x07; |
| 209 | 218 | |
| 210 | 219 | plot_byte(machine(), bitmap, y, x, data, color); |
| r19148 | r19149 | |
| 592 | 601 | MCFG_CPU_PROGRAM_MAP(kamikaze_map) |
| 593 | 602 | MCFG_CPU_IO_MAP(kamikaze_portmap) |
| 594 | 603 | |
| 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) |
| 597 | 606 | |
| 598 | 607 | MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf ) |
| 599 | 608 | MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf ) |
| r19148 | r19149 | |
| 625 | 634 | MCFG_CPU_ADD("maincpu", Z80, MASTER_CLOCK) /* a guess */ |
| 626 | 635 | MCFG_CPU_PROGRAM_MAP(spaceint_map) |
| 627 | 636 | 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) |
| 629 | 638 | |
| 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) |
| 632 | 641 | |
| 633 | 642 | /* video hardware */ |
| 634 | | MCFG_VIDEO_START_OVERRIDE(astinvad_state,spaceint) |
| 643 | MCFG_VIDEO_START_OVERRIDE(astinvad_state, spaceint) |
| 635 | 644 | |
| 636 | 645 | MCFG_SCREEN_ADD("screen", RASTER) |
| 637 | 646 | MCFG_SCREEN_SIZE(32*8, 32*8) |
| r19148 | r19149 | |
| 761 | 770 | * |
| 762 | 771 | *************************************/ |
| 763 | 772 | |
| 764 | | GAME( 1979, kamikaze, 0, kamikaze, kamikaze, astinvad_state, kamikaze, ROT270, "Leijac Corporation", "Kamikaze", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) |
| 765 | | GAME( 1980, astinvad, kamikaze, kamikaze, astinvad, astinvad_state, kamikaze, ROT270, "Leijac Corporation (Stern Electronics license)", "Astro Invader", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) |
| 766 | | GAME( 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. |
| 767 | | GAME( 1979, spcking2, 0, spcking2, spcking2, astinvad_state, spcking2, ROT270, "Konami", "Space King 2", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) |
| 768 | | GAME( 1980, spaceint, 0, spaceint, spaceint, driver_device, 0, ROT90, "Shoei", "Space Intruder", GAME_IMPERFECT_SOUND | GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE ) |
| 769 | | GAME( 1980, spaceintj,spaceint, spaceint, spaceintj, driver_device,0, ROT90, "Shoei", "Space Intruder (Japan)", GAME_IMPERFECT_SOUND | GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE ) |
| 773 | GAME( 1979, kamikaze, 0, kamikaze, kamikaze, astinvad_state, kamikaze, ROT270, "Leijac Corporation", "Kamikaze", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) |
| 774 | GAME( 1980, astinvad, kamikaze, kamikaze, astinvad, astinvad_state, kamikaze, ROT270, "Leijac Corporation (Stern Electronics license)", "Astro Invader", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) |
| 775 | GAME( 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. |
| 776 | GAME( 1979, spcking2, 0, spcking2, spcking2, astinvad_state, spcking2, ROT270, "Konami", "Space King 2", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) |
| 777 | GAME( 1980, spaceint, 0, spaceint, spaceint, driver_device, 0, ROT90, "Shoei", "Space Intruder", GAME_IMPERFECT_SOUND | GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE ) |
| 778 | GAME( 1980, spaceintj,spaceint, spaceint, spaceintj, driver_device, 0, ROT90, "Shoei", "Space Intruder (Japan)", GAME_IMPERFECT_SOUND | GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE ) |