trunk/src/mame/drivers/hyhoo.c
| r242915 | r242916 | |
| 302 | 302 | ROM_END |
| 303 | 303 | |
| 304 | 304 | |
| 305 | | GAME( 1987, hyhoo, 0, hyhoo, hyhoo, driver_device, 0, ROT90, "Nichibutsu", "Hayaoshi Taisen Quiz Hyhoo (Japan)", 0 ) |
| 306 | | GAME( 1987, hyhoo2, 0, hyhoo2, hyhoo2, driver_device, 0, ROT90, "Nichibutsu", "Hayaoshi Taisen Quiz Hyhoo 2 (Japan)", 0 ) |
| 305 | GAME( 1987, hyhoo, 0, hyhoo, hyhoo, driver_device, 0, ROT90, "Nichibutsu", "Hayaoshi Taisen Quiz Hyhoo (Japan)", GAME_SUPPORTS_SAVE ) |
| 306 | GAME( 1987, hyhoo2, 0, hyhoo2, hyhoo2, driver_device, 0, ROT90, "Nichibutsu", "Hayaoshi Taisen Quiz Hyhoo 2 (Japan)", GAME_SUPPORTS_SAVE ) |
trunk/src/mame/drivers/pastelg.c
| r242915 | r242916 | |
| 36 | 36 | #endif |
| 37 | 37 | |
| 38 | 38 | |
| 39 | void pastelg_state::machine_start() |
| 40 | { |
| 41 | save_item(NAME(m_mux_data)); |
| 42 | } |
| 39 | 43 | |
| 40 | 44 | READ8_MEMBER(pastelg_state::pastelg_sndrom_r) |
| 41 | 45 | { |
| 42 | 46 | UINT8 *ROM = memregion("voice")->base(); |
| 43 | 47 | |
| 44 | | return ROM[pastelg_blitter_src_addr_r(space) & 0x7fff]; |
| 48 | return ROM[pastelg_blitter_src_addr_r() & 0x7fff]; |
| 45 | 49 | } |
| 46 | 50 | |
| 47 | 51 | static ADDRESS_MAP_START( pastelg_map, AS_PROGRAM, 8, pastelg_state ) |
| r242915 | r242916 | |
| 66 | 70 | AM_RANGE(0xa0, 0xa0) AM_DEVREADWRITE("nb1413m3", nb1413m3_device, inputport1_r, inputportsel_w) |
| 67 | 71 | AM_RANGE(0xb0, 0xb0) AM_DEVREAD("nb1413m3", nb1413m3_device, inputport2_r) AM_WRITE(pastelg_romsel_w) |
| 68 | 72 | AM_RANGE(0xc0, 0xc0) AM_READ(pastelg_sndrom_r) |
| 69 | | AM_RANGE(0xc0, 0xcf) AM_WRITE(pastelg_clut_w) |
| 73 | AM_RANGE(0xc0, 0xcf) AM_WRITEONLY AM_SHARE("clut") |
| 70 | 74 | AM_RANGE(0xd0, 0xd0) AM_READ(pastelg_irq_ack_r) AM_DEVWRITE("dac", dac_device, write_unsigned8) |
| 71 | 75 | AM_RANGE(0xe0, 0xe0) AM_READ_PORT("DSWC") |
| 72 | 76 | ADDRESS_MAP_END |
| r242915 | r242916 | |
| 118 | 122 | AM_RANGE(0xf0, 0xf6) AM_WRITE(pastelg_blitter_w) |
| 119 | 123 | AM_RANGE(0xa0, 0xa0) AM_READWRITE(threeds_inputport1_r, threeds_inputportsel_w) |
| 120 | 124 | AM_RANGE(0xb0, 0xb0) AM_READ(threeds_inputport2_r) AM_WRITE(threeds_output_w)//writes: bit 3 is coin lockout, bit 1 is coin counter |
| 121 | | AM_RANGE(0xc0, 0xcf) AM_WRITE(pastelg_clut_w) |
| 125 | AM_RANGE(0xc0, 0xcf) AM_WRITEONLY AM_SHARE("clut") |
| 122 | 126 | AM_RANGE(0xc0, 0xc0) AM_READ(threeds_rom_readback_r) |
| 123 | 127 | AM_RANGE(0xd0, 0xd0) AM_READ(pastelg_irq_ack_r) AM_DEVWRITE("dac", dac_device, write_unsigned8) |
| 124 | 128 | ADDRESS_MAP_END |
| r242915 | r242916 | |
| 559 | 563 | |
| 560 | 564 | |
| 561 | 565 | |
| 562 | | GAME( 1985, pastelg, 0, pastelg, pastelg, driver_device, 0, ROT0, "Nichibutsu", "Pastel Gal (Japan 851224)", 0 ) |
| 563 | | GAME( 1985, threeds, 0, threeds, threeds, driver_device, 0, ROT0, "Nichibutsu", "Three Ds - Three Dealers Casino House", 0 ) |
| 564 | | GAME( 1985, galds, threeds, threeds, galds, driver_device, 0, ROT0, "Nihon System Corp.", "Gals Ds - Three Dealers Casino House (bootleg?)", 0 ) |
| 566 | GAME( 1985, pastelg, 0, pastelg, pastelg, driver_device, 0, ROT0, "Nichibutsu", "Pastel Gal (Japan 851224)", GAME_SUPPORTS_SAVE ) |
| 567 | GAME( 1985, threeds, 0, threeds, threeds, driver_device, 0, ROT0, "Nichibutsu", "Three Ds - Three Dealers Casino House", GAME_SUPPORTS_SAVE ) |
| 568 | GAME( 1985, galds, threeds, threeds, galds, driver_device, 0, ROT0, "Nihon System Corp.", "Gals Ds - Three Dealers Casino House (bootleg?)", GAME_SUPPORTS_SAVE ) |
trunk/src/mame/includes/hyhoo.h
| r242915 | r242916 | |
| 10 | 10 | |
| 11 | 11 | hyhoo_state(const machine_config &mconfig, device_type type, const char *tag) |
| 12 | 12 | : driver_device(mconfig, type, tag), |
| 13 | | m_clut(*this, "clut"), |
| 14 | 13 | m_maincpu(*this, "maincpu"), |
| 15 | 14 | m_nb1413m3(*this, "nb1413m3"), |
| 16 | | m_screen(*this, "screen") { } |
| 15 | m_screen(*this, "screen"), |
| 16 | m_clut(*this, "clut") { } |
| 17 | 17 | |
| 18 | | required_shared_ptr<UINT8> m_clut; |
| 19 | 18 | required_device<cpu_device> m_maincpu; |
| 20 | 19 | required_device<nb1413m3_device> m_nb1413m3; |
| 21 | 20 | required_device<screen_device> m_screen; |
| 21 | required_shared_ptr<UINT8> m_clut; |
| 22 | 22 | |
| 23 | 23 | int m_blitter_destx; |
| 24 | 24 | int m_blitter_desty; |
| r242915 | r242916 | |
| 32 | 32 | int m_highcolorflag; |
| 33 | 33 | int m_flipscreen; |
| 34 | 34 | bitmap_rgb32 m_tmpbitmap; |
| 35 | |
| 35 | 36 | DECLARE_WRITE8_MEMBER(hyhoo_blitter_w); |
| 36 | 37 | DECLARE_WRITE8_MEMBER(hyhoo_romsel_w); |
| 38 | |
| 37 | 39 | DECLARE_CUSTOM_INPUT_MEMBER(nb1413m3_busyflag_r); |
| 40 | |
| 38 | 41 | virtual void video_start(); |
| 42 | |
| 39 | 43 | UINT32 screen_update_hyhoo(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); |
| 40 | 44 | void hyhoo_gfxdraw(); |
| 41 | 45 | |
trunk/src/mame/includes/pastelg.h
| r242915 | r242916 | |
| 12 | 12 | : driver_device(mconfig, type, tag) , |
| 13 | 13 | m_maincpu(*this, "maincpu"), |
| 14 | 14 | m_nb1413m3(*this, "nb1413m3"), |
| 15 | | m_screen(*this, "screen") { } |
| 15 | m_screen(*this, "screen"), |
| 16 | m_clut(*this, "clut") { } |
| 16 | 17 | |
| 17 | 18 | required_device<cpu_device> m_maincpu; |
| 18 | 19 | required_device<nb1413m3_device> m_nb1413m3; |
| 19 | 20 | required_device<screen_device> m_screen; |
| 21 | required_shared_ptr<UINT8> m_clut; |
| 20 | 22 | |
| 21 | 23 | UINT8 m_mux_data; |
| 22 | 24 | int m_blitter_destx; |
| r242915 | r242916 | |
| 31 | 33 | int m_blitter_direction_y; |
| 32 | 34 | int m_palbank; |
| 33 | 35 | UINT8 *m_videoram; |
| 34 | | UINT8 *m_clut; |
| 35 | 36 | int m_flipscreen_old; |
| 37 | |
| 36 | 38 | DECLARE_READ8_MEMBER(pastelg_sndrom_r); |
| 37 | 39 | DECLARE_READ8_MEMBER(pastelg_irq_ack_r); |
| 38 | 40 | DECLARE_READ8_MEMBER(threeds_inputport1_r); |
| 39 | 41 | DECLARE_READ8_MEMBER(threeds_inputport2_r); |
| 40 | 42 | DECLARE_WRITE8_MEMBER(threeds_inputportsel_w); |
| 41 | | DECLARE_WRITE8_MEMBER(pastelg_clut_w); |
| 42 | 43 | DECLARE_WRITE8_MEMBER(pastelg_blitter_w); |
| 43 | 44 | DECLARE_WRITE8_MEMBER(threeds_romsel_w); |
| 44 | 45 | DECLARE_WRITE8_MEMBER(threeds_output_w); |
| 45 | 46 | DECLARE_READ8_MEMBER(threeds_rom_readback_r); |
| 46 | 47 | DECLARE_WRITE8_MEMBER(pastelg_romsel_w); |
| 48 | |
| 47 | 49 | DECLARE_CUSTOM_INPUT_MEMBER(nb1413m3_busyflag_r); |
| 48 | 50 | DECLARE_CUSTOM_INPUT_MEMBER(nb1413m3_hackbusyflag_r); |
| 51 | |
| 52 | virtual void machine_start(); |
| 49 | 53 | virtual void video_start(); |
| 54 | |
| 50 | 55 | DECLARE_PALETTE_INIT(pastelg); |
| 51 | 56 | UINT32 screen_update_pastelg(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); |
| 52 | | int pastelg_blitter_src_addr_r(address_space &space); |
| 57 | int pastelg_blitter_src_addr_r(); |
| 53 | 58 | void pastelg_vramflip(); |
| 54 | 59 | void pastelg_gfxdraw(); |
| 55 | 60 | |
| r242915 | r242916 | |
| 57 | 62 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| 58 | 63 | }; |
| 59 | 64 | |
| 60 | | /*----------- defined in video/pastelg.c -----------*/ |
| 61 | | int pastelg_blitter_src_addr_r(address_space &space); |
trunk/src/mame/video/hyhoo.c
| r242915 | r242916 | |
| 226 | 226 | void hyhoo_state::video_start() |
| 227 | 227 | { |
| 228 | 228 | m_screen->register_screen_bitmap(m_tmpbitmap); |
| 229 | save_item(NAME(m_blitter_destx)); |
| 230 | save_item(NAME(m_blitter_desty)); |
| 231 | save_item(NAME(m_blitter_sizex)); |
| 232 | save_item(NAME(m_blitter_sizey)); |
| 233 | save_item(NAME(m_blitter_src_addr)); |
| 234 | save_item(NAME(m_blitter_direction_x)); |
| 235 | save_item(NAME(m_blitter_direction_y)); |
| 236 | save_item(NAME(m_gfxrom)); |
| 237 | save_item(NAME(m_dispflag)); |
| 238 | save_item(NAME(m_highcolorflag)); |
| 239 | save_item(NAME(m_flipscreen)); |
| 240 | save_item(NAME(m_tmpbitmap)); |
| 229 | 241 | } |
| 230 | 242 | |
| 231 | 243 | |
trunk/src/mame/video/pastelg.c
| r242915 | r242916 | |
| 42 | 42 | } |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | | WRITE8_MEMBER(pastelg_state::pastelg_clut_w) |
| 46 | | { |
| 47 | | m_clut[offset] = data; |
| 48 | | } |
| 49 | | |
| 50 | 45 | /****************************************************************************** |
| 51 | 46 | |
| 52 | 47 | |
| 53 | 48 | ******************************************************************************/ |
| 54 | | int pastelg_state::pastelg_blitter_src_addr_r(address_space &space) |
| 49 | int pastelg_state::pastelg_blitter_src_addr_r() |
| 55 | 50 | { |
| 56 | 51 | return m_blitter_src_addr; |
| 57 | 52 | } |
| r242915 | r242916 | |
| 288 | 283 | int height = m_screen->height(); |
| 289 | 284 | |
| 290 | 285 | m_videoram = auto_alloc_array_clear(machine(), UINT8, width * height); |
| 291 | | m_clut = auto_alloc_array(machine(), UINT8, 0x10); |
| 286 | |
| 287 | save_item(NAME(m_blitter_desty)); |
| 288 | save_item(NAME(m_blitter_sizex)); |
| 289 | save_item(NAME(m_blitter_sizey)); |
| 290 | save_item(NAME(m_blitter_src_addr)); |
| 291 | save_item(NAME(m_gfxrom)); |
| 292 | save_item(NAME(m_dispflag)); |
| 293 | save_item(NAME(m_flipscreen)); |
| 294 | save_item(NAME(m_blitter_direction_x)); |
| 295 | save_item(NAME(m_blitter_direction_y)); |
| 296 | save_item(NAME(m_palbank)); |
| 297 | save_pointer(NAME(m_videoram), width*height); |
| 298 | save_item(NAME(m_flipscreen_old)); |
| 292 | 299 | } |
| 293 | 300 | |
| 294 | 301 | /****************************************************************************** |