trunk/src/mame/drivers/cv1k.c
| r31243 | r31244 | |
| 187 | 187 | m_blitter(*this, "blitter"), |
| 188 | 188 | m_serflash(*this, "game"), |
| 189 | 189 | m_eeprom(*this, "eeprom"), |
| 190 | | cv1k_ram(*this, "mainram") { } |
| 190 | cv1k_ram(*this, "mainram"), |
| 191 | m_blitrate(*this, "BLITRATE"), |
| 192 | m_eepromout(*this, "EEPROMOUT") { } |
| 191 | 193 | |
| 192 | 194 | required_device<cpu_device> m_maincpu; |
| 193 | 195 | required_device<epic12_device> m_blitter; |
| r31243 | r31244 | |
| 214 | 216 | DECLARE_DRIVER_INIT(mushisam); |
| 215 | 217 | DECLARE_DRIVER_INIT(mushisama); |
| 216 | 218 | DECLARE_DRIVER_INIT(espgal2); |
| 219 | |
| 220 | required_ioport m_blitrate; |
| 221 | required_ioport m_eepromout; |
| 217 | 222 | }; |
| 218 | 223 | |
| 219 | 224 | |
| r31243 | r31244 | |
| 226 | 231 | |
| 227 | 232 | UINT32 cv1k_state::screen_update_cv1k(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) |
| 228 | 233 | { |
| 229 | | epic12_device::set_delay_scale(m_blitter, ioport(":BLITRATE")->read()); |
| 234 | epic12_device::set_delay_scale(m_blitter, m_blitrate->read()); |
| 230 | 235 | |
| 231 | 236 | m_blitter->draw_screen(bitmap,cliprect); |
| 232 | 237 | return 0; |
| r31243 | r31244 | |
| 306 | 311 | switch (offset) |
| 307 | 312 | { |
| 308 | 313 | case 0x01: |
| 309 | | space.machine().root_device().ioport("EEPROMOUT")->write(data, 0xff); |
| 314 | m_eepromout->write(data, 0xff); |
| 310 | 315 | break; |
| 311 | 316 | case 0x03: |
| 312 | 317 | m_serflash->flash_enab_w(space,offset,data); |