trunk/src/mame/drivers/galpani2.c
| r243545 | r243546 | |
| 358 | 358 | // AM_RANGE(0x390000, 0x3901ff) AM_WRITENOP // ? at startup of service mode |
| 359 | 359 | |
| 360 | 360 | AM_RANGE(0x400000, 0x43ffff) AM_RAM AM_SHARE("bg8.0") // Background 0 |
| 361 | | AM_RANGE(0x440000, 0x440001) AM_RAM AM_SHARE("bg8_scrollx.0") // Background 0 Scroll X |
| 362 | | AM_RANGE(0x480000, 0x480001) AM_RAM AM_SHARE("bg8_scrolly.0") // Background 0 Scroll Y |
| 361 | AM_RANGE(0x440000, 0x440001) AM_RAM AM_SHARE("bg8_scrolly.0") // Background 0 Scroll Y |
| 362 | AM_RANGE(0x480000, 0x480001) AM_RAM AM_SHARE("bg8_scrollx.0") // Background 0 Scroll X |
| 363 | 363 | // AM_RANGE(0x4c0000, 0x4c0001) AM_WRITENOP // ? 0 at startup only |
| 364 | 364 | AM_RANGE(0x500000, 0x53ffff) AM_RAM AM_SHARE("bg8.1") // Background 1 |
| 365 | | AM_RANGE(0x540000, 0x540001) AM_RAM AM_SHARE("bg8_scrollx.1") // Background 1 Scroll X |
| 366 | | AM_RANGE(0x580000, 0x580001) AM_RAM AM_SHARE("bg8_scrolly.1") // Background 1 Scroll Y |
| 365 | AM_RANGE(0x540000, 0x540001) AM_RAM AM_SHARE("bg8_scrolly.1") // Background 1 Scroll Y |
| 366 | AM_RANGE(0x580000, 0x580001) AM_RAM AM_SHARE("bg8_scrollx.1") // Background 1 Scroll X |
| 367 | 367 | // AM_RANGE(0x5c0000, 0x5c0001) AM_WRITENOP // ? 0 at startup only |
| 368 | 368 | |
| 369 | 369 | AM_RANGE(0x540572, 0x540573) AM_READNOP // ? galpani2 at F0A4 |
trunk/src/mame/video/galpani2.c
| r243545 | r243546 | |
| 90 | 90 | |
| 91 | 91 | // based on videos these 8-bit layers actually get *blended* against the RGB555 layer |
| 92 | 92 | // it should be noted that in the layer at 0x500000 the upper 8 bits are set too, this could be related |
| 93 | |
| 94 | // scrolling is based on sync between sprite and this layer during the 'keyhole viewer' between rounds (use cheats) |
| 93 | 95 | void galpani2_state::copybg8(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int layer) |
| 94 | 96 | { |
| 95 | | int x = - ( *m_bg8_scrollx[layer] + 0x200 - 0x0f5 ); |
| 96 | | int y = - ( *m_bg8_scrolly[layer] + 0x200 - 0x1be ); |
| 97 | int x = + ( *m_bg8_scrollx[layer] + 0x200 - 0x1be ); |
| 98 | int y = + ( *m_bg8_scrolly[layer] + 0x200 - 0x0f5 ); |
| 97 | 99 | UINT16* ram = m_bg8[layer]; |
| 98 | 100 | |
| 99 | 101 | const pen_t *clut = &m_bg8palette->pen(0); |