Previous 15994 Revisions Next

r15837 Friday 10th August, 2012 at 13:13:37 UTC by Angelo Salese
[PC-6001]: added 64 x 64 mode 2 gfxs
[src/mess/drivers]pc6001.c

src/mess/drivers/pc6001.c
r15836r15837
2525                  but, according to an original video reference that I've seen, that screen should actually some kind of weird garbage on it ...
2626    - AX6 - Powered Knight: doesn't work too well, according to the asm code it asks the player to press either 'B' or 'C' then a number but
2727                            nothing is shown on screen, other emus behaves the same, bad dump?
28    - Dawn Patrol (cart): presumably too slow;
2829    (Mk2 mode 5 games)
2930    - 3D Golf Simulation Super Version: gameplay / inputs looks broken
3031    - American Truck: Screen is offset at the loading screen, loading bug?
r15836r15837
267268   };
268269   col_setting = machine.root_device().ioport("MODE4_DSW")->read() & 7;
269270
271   if((attr & 0x0c) != 0x0c)
272      popmessage("Mode 4 vram attr != 0x0c, contact MESSdev");
273
270274   for(y=0;y<192;y++)
271275   {
272276      for(x=0;x<32;x++)
r15836r15837
310314   int w = (shrink_x == 8) ? 32 : 16;
311315   int col_bank = ((attr & 2)<<1);
312316
313   for(y=0;y<(192/shrink_y);y++)
317   if(attr & 4)
314318   {
315      for(x=0;x<w;x++)
319      for(y=0;y<(192/shrink_y);y++)
316320      {
317         int tile = state->m_video_ram[(x+(y*32))+0x200];
321         for(x=0;x<w;x++)
322         {
323            int tile = state->m_video_ram[(x+(y*32))+0x200];
318324
319         for(yi=0;yi<shrink_y;yi++)
325            for(yi=0;yi<shrink_y;yi++)
326            {
327               for(xi=0;xi<shrink_x;xi++)
328               {
329                  int i;
330                  i = (shrink_x == 8) ? (xi & 0x06) : (xi & 0x0c)>>1;
331                  color = ((tile >> i) & 3)+8;
332                  color+= col_bank;
333
334                  bitmap.pix16(((y*shrink_y+yi)+24), (x*shrink_x+((shrink_x-1)-xi))+32) = machine.pens[color];
335               }
336            }
337         }
338      }
339   }
340   else /* TODO: clean this up */
341   {
342      for(y=0;y<(192/shrink_y);y+=3)
343      {
344         for(x=0;x<w;x++)
320345         {
321            for(xi=0;xi<shrink_x;xi++)
346            int tile = state->m_video_ram[(x+((y/3)*32))+0x200];
347
348            for(yi=0;yi<shrink_y;yi++)
322349            {
323               int i;
324               i = (shrink_x == 8) ? (xi & 0x06) : (xi & 0x0c)>>1;
325               color = ((tile >> i) & 3)+8;
326               color+= col_bank;
350               for(xi=0;xi<shrink_x;xi++)
351               {
352                  int i;
353                  i = (shrink_x == 8) ? (xi & 0x06) : (xi & 0x0c)>>1;
354                  color = ((tile >> i) & 3)+8;
355                  color+= col_bank;
327356
328               bitmap.pix16(((y*shrink_y+yi)+24), (x*shrink_x+((shrink_x-1)-xi))+32) = machine.pens[color];
357                  bitmap.pix16((((y+0)*shrink_y+yi)+24), (x*shrink_x+((shrink_x-1)-xi))+32) = machine.pens[color];
358                  bitmap.pix16((((y+1)*shrink_y+yi)+24), (x*shrink_x+((shrink_x-1)-xi))+32) = machine.pens[color];
359                  bitmap.pix16((((y+2)*shrink_y+yi)+24), (x*shrink_x+((shrink_x-1)-xi))+32) = machine.pens[color];
360               }
329361            }
330362         }
331363      }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team