Code: Select all
392 void m92_state::ppan_draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect)
393 {
394 UINT16 *source = m_spriteram->live(); // sprite buffer control is never triggered
395 int offs, layer;
396
397 for (layer = 0; layer < 8; layer++)
398 {
399 for (offs = 0; offs < m_sprite_list; )
400 {
401 int x = source[offs+3] & 0x1ff;
402 int y = source[offs+0] & 0x1ff;
403 int code = source[offs+1];
404 int color = source[offs+2] & 0x007f;
405 int pri = (~source[offs+2] >> 6) & 2;
406 int curlayer = (source[offs+0] >> 13) & 7;
407 int flipx = (source[offs+2] >> 8) & 1;
408 int flipy = (source[offs+2] >> 9) & 1;
409 int numcols = 1 << ((source[offs+0] >> 11) & 3);
410 int numrows = 1 << ((source[offs+0] >> 9) & 3);
411 int row, col, s_ptr;
You know, this is kind of random, but is the self test something that goes on in software? I would have thought it would have done it even before it looked at any of the code, but it doesn't. One really weird thing is that cgram is filled out even if you don't write anything. (The red color that was being loaded to color 0 just wrote over the first black color, but everything else is still filled out. I would have thought all the colors would have been black from start up.)