Previous 199869 Revisions Next

r21421 Sunday 24th February, 2013 at 16:21:18 UTC by Angelo Salese
Tilemap vreg notes
[src/mame/drivers]coolridr.c

trunk/src/mame/drivers/coolridr.c
r21420r21421
540540/* 0x00000 - 0x1ffff = screen 1 */
541541/* 0x20000 - 0x3ffff = screen 2 */
542542/* 0x40000 - 0xfffff = ? */
543/*
544   vregs are setted up with one of DMA commands (see below)
545   0x3e09b80 screen 1 base, 0x3e9bc0 screen 2 base
546   [+0x1c] ---- ---- ---- ---- ---- ---- ---- -x-- disabled on screen 1, enabled on screen 2 (tile offset start?)
547   [+0x1c] ---- ---- ---- ---- ---- ---- ---- ---x Enabled on bike select screen in tandem with +0x3c, solid pen fill?
548   [+0x2c] ---- -xxx xxxx xxxx ---- --yy yyyy yyyy scrolling registers
549   [+0x34] 1111 1111 2222 2222 3333 3333 4444 4444 - Almost surely Sega "map" registers
550   [+0x38] 5555 5555 6666 6666 7777 7777 8888 8888 /
551   [+0x3c] ---- ---- ---- ---- xxxx xxxx xxxx xxxx 0x11b8 on bike select, solid pen value?
552   (everything else is unknown at current time)
553*/
554
543555UINT32 coolridr_state::screen_update_coolridr(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int which)
544556{
545557   /* planes seems to basically be at 0x8000 and 0x28000... */
546#if 1
547558   UINT32 base_offset;
548559   int tile,color;
549560   int scrollx;
r21420r21421
575586      }
576587   }
577588
578#endif
579589   if (which==0)
580590   {
581591      // will probably need a custom function
r21420r21421
18021812      if(g < 0) { g = 0; }
18031813      if(b < 0) { b = 0; }
18041814   }
1805   else if(rgb_setting == 0x920) /* at bike select, addition */
1815   else if(rgb_setting == 0x920) /* at bike select / outside tunnels, addition */
18061816   {
18071817      r += rgb_gradient;
18081818      g += rgb_gradient;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team