Previous 199869 Revisions Next

r17621 Monday 3rd September, 2012 at 19:26:37 UTC by hap
make the undumped tilehalf empty instead of random garbage (ROMREGION_ERASE00 does not work there)
[src/mame/drivers]cball.c

trunk/src/mame/drivers/cball.c
r17620r17621
1212{
1313public:
1414   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   { }
1718
1819   /* memory pointers */
1920   required_shared_ptr<UINT8> m_video_ram;
r17620r17621
4041
4142WRITE8_MEMBER(cball_state::cball_vram_w)
4243{
43
4444   m_video_ram[offset] = data;
4545   m_bg_tilemap->mark_tile_dirty(offset);
4646}
r17620r17621
112112
113113READ8_MEMBER(cball_state::cball_wram_r)
114114{
115
116115   return m_video_ram[0x380 + offset];
117116}
118117
119118
120119WRITE8_MEMBER(cball_state::cball_wram_w)
121120{
122
123121   m_video_ram[0x380 + offset] = data;
124122}
125123
r17620r17621
261259
262260   ROM_REGION( 0x0200, "gfx1", 0 ) /* tiles */
263261   ROM_LOAD_NIB_LOW ( "canball.6m", 0x0000, 0x0200, NO_DUMP )
262   ROM_FILL(                        0x0000, 0x0200, 0 )
264263   ROM_LOAD_NIB_HIGH( "canball.6l", 0x0000, 0x0200, CRC(5b1c9e88) SHA1(6e9630db9907170c53942a21302bcf8b721590a3) )
265264
266265   ROM_REGION( 0x0200, "gfx2", 0 ) /* sprites */

Previous 199869 Revisions Next


© 1997-2024 The MAME Team