Previous 199869 Revisions Next

r21893 Saturday 16th March, 2013 at 19:20:17 UTC by David Haywood
deco_mlc - hide some unwanted gfx in stadhr96
[src/mame/video]deco_mlc.c

trunk/src/mame/video/deco_mlc.c
r21892r21893
165165                  0x4000 - Y flip
166166                  0x2000 - Auto-flicker (display sprite only every other frame)
167167                  0x1000 - If set combine this 4bpp sprite & next one, into 8bpp sprite
168                  0x0800 - ?  (Not seen used anywhere)
168                  0x0800 - This is set ingame on Stadium Hero 96, on graphics which otherwise obscure the playfield?
169169                  0x0400 - Use raster IRQ lookup table when drawing object
170170                  0x0300 - Selects clipping window to use
171171                  0x00ff - Colour/alpha shadow enable
r21892r21893
208208      // although it doesn't seem to set the scroll values very often either
209209      // so the irq mechanism might be wrong
210210      rasterMode = (mlc_spriteram[offs+1]>>10)&0x1;
211
212
211213     
214      int unk_bit = (mlc_spriteram[offs+1]>>10)&0x2;
215      // just bail if this bit is set, although it might be clip window related and enable a clip window
216      // to hide all the sprites it covers
217      if (unk_bit)
218         continue;
212219
220
213221     
214222      clipper = (mlc_spriteram[offs+1]>>8)&0x3;
215223      indx = mlc_spriteram[offs+0]&0x3fff;
r21892r21893
323331
324332      if (rasterMode)
325333      {
326         int irq_base_reg = 6 /* 6, 9, 12 */;
334         int irq_base_reg = 12 /* 6, 9, 12 */;
327335
328336         int extra_y_off = m_irq_ram[irq_base_reg+0] & 0x7ff;
329337         int extra_x_off = m_irq_ram[irq_base_reg+1] & 0x7ff;
r21892r21893
332340
333341         if (extra_x_off & 0x400) extra_x_off -= 0x800;
334342         if (extra_y_off & 0x400) extra_y_off -= 0x800;
343     
344         if (extra_y_scale & 0x400) extra_y_scale -= 0x800;
345         if (extra_x_scale & 0x400) extra_x_scale -= 0x800;
335346
336347         x += extra_x_off;
337         y += extra_x_off;
348         y += extra_y_off;
338349
339         xscale = extra_x_scale;
340         yscale = extra_y_scale;
350         xscale += extra_x_scale;
351         yscale += extra_y_scale;
341352
342353      }
343354
r21892r21893
382393         continue;
383394
384395
385
396   
397//      color = machine().rand();
386398     
387399      int srcline = ((bby<<16) / ratio);
388400         

Previous 199869 Revisions Next


© 1997-2024 The MAME Team