trunk/src/mame/drivers/feversoc.c
| r31188 | r31189 | |
| 71 | 71 | public: |
| 72 | 72 | feversoc_state(const machine_config &mconfig, device_type type, const char *tag) |
| 73 | 73 | : driver_device(mconfig, type, tag), |
| 74 | m_mainram(*this, "workram"), |
| 74 | 75 | m_spriteram(*this, "spriteram"), |
| 75 | 76 | m_maincpu(*this, "maincpu"), |
| 76 | 77 | m_oki(*this, "oki"), |
| r31188 | r31189 | |
| 78 | 79 | m_palette(*this, "palette") { } |
| 79 | 80 | |
| 80 | 81 | UINT16 m_x; |
| 82 | required_shared_ptr<UINT32> m_mainram; |
| 81 | 83 | required_shared_ptr<UINT32> m_spriteram; |
| 82 | 84 | DECLARE_READ32_MEMBER(in0_r); |
| 83 | 85 | DECLARE_WRITE32_MEMBER(output_w); |
| r31188 | r31189 | |
| 85 | 87 | virtual void video_start(); |
| 86 | 88 | UINT32 screen_update_feversoc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); |
| 87 | 89 | INTERRUPT_GEN_MEMBER(feversoc_irq); |
| 88 | | required_device<cpu_device> m_maincpu; |
| 90 | required_device<sh2_device> m_maincpu; |
| 89 | 91 | required_device<okim6295_device> m_oki; |
| 90 | 92 | required_device<gfxdecode_device> m_gfxdecode; |
| 91 | 93 | required_device<palette_device> m_palette; |
| r31188 | r31189 | |
| 160 | 162 | |
| 161 | 163 | static ADDRESS_MAP_START( feversoc_map, AS_PROGRAM, 32, feversoc_state ) |
| 162 | 164 | AM_RANGE(0x00000000, 0x0003ffff) AM_ROM |
| 163 | | AM_RANGE(0x02000000, 0x0203dfff) AM_RAM //work ram |
| 165 | AM_RANGE(0x02000000, 0x0203dfff) AM_RAM AM_SHARE("workram") //work ram |
| 164 | 166 | AM_RANGE(0x0203e000, 0x0203ffff) AM_RAM AM_SHARE("spriteram") |
| 165 | 167 | AM_RANGE(0x06000000, 0x06000003) AM_WRITE(output_w) |
| 166 | 168 | AM_RANGE(0x06000004, 0x06000007) AM_WRITENOP //??? |
| r31188 | r31189 | |
| 293 | 295 | |
| 294 | 296 | DRIVER_INIT_MEMBER(feversoc_state,feversoc) |
| 295 | 297 | { |
| 298 | UINT32 *rom = (UINT32 *)memregion("maincpu")->base(); |
| 299 | |
| 296 | 300 | seibuspi_rise11_sprite_decrypt_feversoc(memregion("gfx1")->base(), 0x200000); |
| 301 | |
| 302 | m_maincpu->sh2drc_set_options(SH2DRC_FASTEST_OPTIONS); |
| 303 | m_maincpu->sh2drc_add_fastram(0x00000000, 0x0003ffff, 1, rom); |
| 304 | m_maincpu->sh2drc_add_fastram(0x02000000, 0x0203dfff, 0, &m_mainram[0]); |
| 305 | m_maincpu->sh2drc_add_fastram(0x0203e000, 0x0203ffff, 0, &m_spriteram[0]); |
| 297 | 306 | } |
| 298 | 307 | |
| 299 | 308 | GAME( 2004, feversoc, 0, feversoc, feversoc, feversoc_state, feversoc, ROT0, "Seibu Kaihatsu", "Fever Soccer", 0 ) |