trunk/src/mame/drivers/ddragon3.c
| r31976 | r31977 | |
| 277 | 277 | /*- Priority Control -*/ |
| 278 | 278 | |
| 279 | 279 | |
| 280 | | WRITE16_MEMBER(wwfwfest_state::wwfwfest_1410_write) |
| 280 | WRITE8_MEMBER(wwfwfest_state::wwfwfest_priority_w) |
| 281 | 281 | { |
| 282 | | m_pri = data & 0xff; |
| 282 | m_pri = data; |
| 283 | 283 | } |
| 284 | 284 | |
| 285 | 285 | |
| r31976 | r31977 | |
| 362 | 362 | AM_RANGE(0x10000a, 0x10000b) AM_WRITE(wwfwfest_flipscreen_w) |
| 363 | 363 | AM_RANGE(0x140000, 0x140003) AM_WRITE(wwfwfest_irq_ack_w) |
| 364 | 364 | AM_RANGE(0x14000c, 0x14000d) AM_WRITE(wwfwfest_soundwrite) |
| 365 | | AM_RANGE(0x140010, 0x140011) AM_WRITE(wwfwfest_1410_write) |
| 365 | AM_RANGE(0x140010, 0x140011) AM_WRITE8(wwfwfest_priority_w, 0x00ff) |
| 366 | 366 | AM_RANGE(0x140020, 0x140021) AM_READ_PORT("P1") |
| 367 | 367 | AM_RANGE(0x140022, 0x140023) AM_READ_PORT("P2") |
| 368 | 368 | AM_RANGE(0x140024, 0x140025) AM_READ_PORT("P3") |
trunk/src/mame/video/ddragon3.c
| r31976 | r31977 | |
| 110 | 110 | |
| 111 | 111 | WRITE16_MEMBER(wwfwfest_state::wwfwfest_fg0_videoram_w) |
| 112 | 112 | { |
| 113 | | /* Videoram is 8 bit, upper & lower byte writes end up in the same place */ |
| 114 | | if (ACCESSING_BITS_8_15 && ACCESSING_BITS_0_7) { |
| 115 | | COMBINE_DATA(&m_fg0_videoram[offset]); |
| 116 | | } else if (ACCESSING_BITS_8_15) { |
| 117 | | m_fg0_videoram[offset]=(data>>8)&0xff; |
| 118 | | } else { |
| 119 | | m_fg0_videoram[offset]=data&0xff; |
| 120 | | } |
| 113 | /* Videoram is 8 bit, upper & lower byte writes end up in the same place due to m68k byte smearing */ |
| 114 | m_fg0_videoram[offset]=data&0xff; |
| 121 | 115 | |
| 122 | 116 | m_fg0_tilemap->mark_tile_dirty(offset/2); |
| 123 | 117 | } |
| r31976 | r31977 | |
| 292 | 286 | |
| 293 | 287 | UINT32 wwfwfest_state::screen_update_wwfwfest(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 294 | 288 | { |
| 295 | | if (m_pri == 0x0078) { |
| 289 | if (m_pri == 0x78) { |
| 296 | 290 | m_fg_tilemap->set_scrolly(0, m_fg_scrolly ); |
| 297 | 291 | m_fg_tilemap->set_scrollx(0, m_fg_scrollx + m_bg0_dx); |
| 298 | 292 | m_bg_tilemap->set_scrolly(0, m_bg_scrolly ); |
| r31976 | r31977 | |
| 306 | 300 | |
| 307 | 301 | /* todo : which bits of pri are significant to the order */ |
| 308 | 302 | |
| 309 | | if (m_pri == 0x007b) { |
| 303 | if (m_pri == 0x7b) { |
| 310 | 304 | m_fg_tilemap->draw(screen, bitmap, cliprect, TILEMAP_DRAW_OPAQUE,0); |
| 311 | 305 | m_bg_tilemap->draw(screen, bitmap, cliprect, 0,0); |
| 312 | 306 | draw_sprites(bitmap,cliprect); |
| 313 | 307 | } |
| 314 | 308 | |
| 315 | | if (m_pri == 0x007c) { |
| 309 | if (m_pri == 0x7c) { |
| 316 | 310 | m_fg_tilemap->draw(screen, bitmap, cliprect, TILEMAP_DRAW_OPAQUE,0); |
| 317 | 311 | draw_sprites(bitmap,cliprect); |
| 318 | 312 | m_bg_tilemap->draw(screen, bitmap, cliprect, 0,0); |
| 319 | 313 | } |
| 320 | 314 | |
| 321 | | if (m_pri == 0x0078) { |
| 315 | if (m_pri == 0x78) { |
| 322 | 316 | m_bg_tilemap->draw(screen, bitmap, cliprect, TILEMAP_DRAW_OPAQUE,0); |
| 323 | 317 | m_fg_tilemap->draw(screen, bitmap, cliprect, 0,0); |
| 324 | 318 | draw_sprites(bitmap,cliprect); |