Previous 199869 Revisions Next

r35034 Saturday 14th February, 2015 at 15:09:40 UTC by David Haywood
galpani2, swap x and y scroll on ind8 layer (nw)
[src/mame/drivers]galpani2.c
[src/mame/video]galpani2.c

trunk/src/mame/drivers/galpani2.c
r243545r243546
358358//  AM_RANGE(0x390000, 0x3901ff) AM_WRITENOP                                        // ? at startup of service mode
359359
360360   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
363363//  AM_RANGE(0x4c0000, 0x4c0001) AM_WRITENOP                                        // ? 0 at startup only
364364   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
367367//  AM_RANGE(0x5c0000, 0x5c0001) AM_WRITENOP                                        // ? 0 at startup only
368368
369369   AM_RANGE(0x540572, 0x540573) AM_READNOP                                         // ? galpani2 at F0A4
trunk/src/mame/video/galpani2.c
r243545r243546
9090
9191// based on videos these 8-bit layers actually get *blended* against the RGB555 layer
9292// 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)
9395void galpani2_state::copybg8(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int layer)
9496{
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 );
9799   UINT16* ram = m_bg8[layer];
98100
99101   const pen_t *clut = &m_bg8palette->pen(0);


Previous 199869 Revisions Next


© 1997-2024 The MAME Team