Previous 15994 Revisions Next

r5929 Wednesday 30th September, 2009 at 21:51:21 UTC by Angelo Salese
[PC6001]: Implemented 2x2 squares on a single cell mode, used by the ASCII AX-7 Demo
[src/mess/drivers]pc6001.c

src/mess/drivers/pc6001.c
r5928r5929
9999static UINT8 irq_vector = 0x00;
100100static UINT8 cas_switch,sys_latch;
101101
102#define CAS_LENGTH 0x3d32
102#define CAS_LENGTH 0x2ef1
103103
104104static VIDEO_START( pc6001 )
105105{
r5928r5929
162162
163163            if(attr & 0x40)
164164            {
165               pen = (tile & 0xc0) >> 6 | (attr & 2)<<1;
165               if(attr & 0x10) //2x2 squares on a single cell
166                  pen = (tile & 0x70)>>4;
167               else //2x3
168                  pen = (tile & 0xc0) >> 6 | (attr & 2)<<1;
166169
167170               for(yi=0;yi<12;yi++)
168171               {
r5928r5929
170173                  {
171174                     int i;
172175                     i = (xi & 4)>>2; //x-axis
173                     i+= (yi & 4)>>1; //y-axis 1
174                     i+= (yi & 8)>>1; //y-axis 2
176                     if(attr & 0x10) //2x2
177                     {
178                        i+= (yi >= 6) ? 2 : 0; //y-axis
179                     }
180                     else //2x3
181                     {
182                        i+= (yi & 4)>>1; //y-axis 1
183                        i+= (yi & 8)>>1; //y-axis 2
184                     }
175185
176186                     color = ((tile >> i) & 1) ? pen+8 : 0;
177187
r5928r5929
526536static TIMER_CALLBACK(cassette_callback)
527537{
528538   UINT8 *gfx_data = memory_region(machine, "cas");
529   static int i;
539   static UINT32 i;
530540
531541   if(cas_switch == 1)
532542   {
r5928r5929
664674
665675   ROM_REGION( 0x10000, "cas", ROMREGION_ERASEFF )
666676   /* Load here your tape for now (and change the cas length macro according to what MESS returns) */
667//   ROM_LOAD( "magnetic field.cas", 0x0000, CAS_LENGTH, CRC(1) SHA1(1) )
677//   ROM_LOAD( "ax7 demo.cas", 0x0000, CAS_LENGTH, CRC(1) SHA1(1) )
668678ROM_END
669679
670680ROM_START( pc6001a )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team