Previous 199869 Revisions Next

r21835 Wednesday 13th March, 2013 at 16:05:52 UTC by Angelo Salese
Fix compile
[src/emu/video]stvvdp1.c
[src/mame/drivers]popobear.c

trunk/src/emu/video/stvvdp1.c
r21834r21835
20692069   m_vdp1.fbcr_accessed = 0;
20702070
20712071   if (VDP1_LOG) logerror( "PTM = %0x, TVM = %x\n", STV_VDP1_PTM, STV_VDP1_TVM );
2072   /*Set CEF bit to 0*/
2073   //CEF_0;
20722074   switch(STV_VDP1_PTM & 3)
20732075   {
20742076      case 0:/*Idle Mode*/
trunk/src/mame/drivers/popobear.c
r21834r21835
8787      m_maincpu(*this,"maincpu"),
8888      m_spr(*this, "spr"),
8989      m_vregs(*this, "vregs")
90   
91   {
90
91   {
9292      tilemap_base[0] = 0xf0000;
9393      tilemap_base[1] = 0xf4000;
9494      tilemap_base[2] = 0xf8000;
r21834r21835
9797      tilemap_size[0] = 0x04000;
9898      tilemap_size[1] = 0x04000;
9999      tilemap_size[2] = 0x04000;
100      tilemap_size[3] = 0x04000;   
100      tilemap_size[3] = 0x04000;
101101   }
102102
103103   required_device<cpu_device> m_maincpu;
r21834r21835
130130
131131      // the graphic data for the tiles is in a strange order, rearrange it so that we can use it as tiles..
132132      int swapped_offset = BITSWAP32(offset, /* unused bits */ 31,30,29,28,27,26,25,24,23,22,21,20,19, /* end unused bits */
133   
133
134134      18,17,16,15,14,13,12,
135     
135
136136      8,7,6,5,4,3,2,
137137
138138      11,10,9, /* y tile address bits */
139     
139
140140      1,0 /* x tile address bits */);
141141
142142
r21834r21835
302302   UINT16* vreg = m_vregs;
303303
304304   popmessage("%04x %04x %04x %04x %04x %04x %04x - %04x - %04x %04x",vreg[0x00],vreg[0x01],vreg[0x02],vreg[0x03],vreg[0x04],vreg[0x05],vreg[0x06], vreg[0x0b],vreg[0x0e],vreg[0x0f]);
305   
306305
307306
307
308308   // these are more than just enable, they get written with 0x0d and 0x1f (and 0x00 when a layer is off)
309309   // seems to be related to the linescroll mode at least? maybe sizes?
310310   int enable0 = (m_vregs[0x0c] & 0xff00)>>8;
r21834r21835
343343         clip.min_y = clip.max_y = line;
344344
345345         m_bg_tilemap[1]->set_scrollx(0,(val&0x00ff) | (upper << 8));
346         m_bg_tilemap[1]->set_scrolly((0,(val&0xff00)>>8)-line);
346         m_bg_tilemap[1]->set_scrolly(0,((val&0xff00)>>8)-line);
347347
348348         m_bg_tilemap[1]->draw(bitmap, clip, 0, 0);
349349      }
r21834r21835
368368         clip.min_y = clip.max_y = line;
369369
370370         m_bg_tilemap[0]->set_scrollx(0,(val&0x00ff) | (upper << 8));
371         m_bg_tilemap[0]->set_scrolly((0,(val&0xff00)>>8)-line);
371         m_bg_tilemap[0]->set_scrolly(0,((val&0xff00)>>8)-line);
372372
373373         m_bg_tilemap[0]->draw(bitmap, clip, 0, 0);
374374      }
r21834r21835
408408   AM_RANGE(0x210000, 0x21ffff) AM_RAM
409409   AM_RANGE(0x280000, 0x2fffff) AM_RAM AM_SHARE("spr") // unknown boundaries, 0x2ff800 contains a sprite list, lower area = sprite gfx
410410   AM_RANGE(0x300000, 0x3fffff) AM_READWRITE( popo_vram_r, popo_vram_w ) // tile definitions + tilemaps
411             
412411
412
413413   /* Most if not all of these are vregs */
414414   AM_RANGE(0x480000, 0x48001f) AM_RAM AM_SHARE("vregs")
415415   AM_RANGE(0x480020, 0x480023) AM_RAM

Previous 199869 Revisions Next


© 1997-2024 The MAME Team