trunk/src/mame/drivers/cball.c
| r17620 | r17621 | |
| 12 | 12 | { |
| 13 | 13 | public: |
| 14 | 14 | cball_state(const machine_config &mconfig, device_type type, const char *tag) |
| 15 | | : driver_device(mconfig, type, tag) , |
| 16 | | m_video_ram(*this, "video_ram"){ } |
| 15 | : driver_device(mconfig, type, tag), |
| 16 | m_video_ram(*this, "video_ram") |
| 17 | { } |
| 17 | 18 | |
| 18 | 19 | /* memory pointers */ |
| 19 | 20 | required_shared_ptr<UINT8> m_video_ram; |
| r17620 | r17621 | |
| 40 | 41 | |
| 41 | 42 | WRITE8_MEMBER(cball_state::cball_vram_w) |
| 42 | 43 | { |
| 43 | | |
| 44 | 44 | m_video_ram[offset] = data; |
| 45 | 45 | m_bg_tilemap->mark_tile_dirty(offset); |
| 46 | 46 | } |
| r17620 | r17621 | |
| 112 | 112 | |
| 113 | 113 | READ8_MEMBER(cball_state::cball_wram_r) |
| 114 | 114 | { |
| 115 | | |
| 116 | 115 | return m_video_ram[0x380 + offset]; |
| 117 | 116 | } |
| 118 | 117 | |
| 119 | 118 | |
| 120 | 119 | WRITE8_MEMBER(cball_state::cball_wram_w) |
| 121 | 120 | { |
| 122 | | |
| 123 | 121 | m_video_ram[0x380 + offset] = data; |
| 124 | 122 | } |
| 125 | 123 | |
| r17620 | r17621 | |
| 261 | 259 | |
| 262 | 260 | ROM_REGION( 0x0200, "gfx1", 0 ) /* tiles */ |
| 263 | 261 | ROM_LOAD_NIB_LOW ( "canball.6m", 0x0000, 0x0200, NO_DUMP ) |
| 262 | ROM_FILL( 0x0000, 0x0200, 0 ) |
| 264 | 263 | ROM_LOAD_NIB_HIGH( "canball.6l", 0x0000, 0x0200, CRC(5b1c9e88) SHA1(6e9630db9907170c53942a21302bcf8b721590a3) ) |
| 265 | 264 | |
| 266 | 265 | ROM_REGION( 0x0200, "gfx2", 0 ) /* sprites */ |