Previous 199869 Revisions Next

r36613 Tuesday 24th March, 2015 at 22:57:37 UTC by Angelo Salese
Global layer clearance is at 0x10 bits 4-5 (nw)
[src/mame/drivers]ttchamp.c

trunk/src/mame/drivers/ttchamp.c
r245124r245125
205205      }
206206   }
207207   
208
208#if 0
209209   for (int i = 0; i < 0x8000; i++)
210210   {
211211      // how are layers cleared?
r245124r245125
215215   //   m_videoram1[i] = 0x0000;
216216   //   m_videoram2[i] = 0x0000;
217217   }
218
218#endif
219   
219220   return 0;
220221}
221222
r245124r245125
381382
382383WRITE16_MEMBER(ttchamp_state::port10_w)
383384{
385   UINT8 res;
384386   COMBINE_DATA(&m_port10);
387   
388   res = m_port10 & 0xf0;
389   /* Assume that both bits clears layers. */
390   if(res == 0x30)
391   {
392      for (int i = 0; i < 0x8000; i++)
393      {
394         m_videoram0[i] = 0x0000;
395         m_videoram2[i] = 0x0000;
396      }
397   }
398   else if(res != 0)
399      printf("Check me, i/o 0x10 used with %02x\n",res);
385400}
386401
387402WRITE16_MEMBER(ttchamp_state::port20_w)
r245124r245125
389404   printf("%06x: port20_w %04x %04x\n", space.device().safe_pc(), data, mem_mask);
390405   // seems to somehow be tied to layer clear
391406   // might also depend on layer selected with 0x10 tho? written after it
392   for (int i = 0; i < 0x8000; i++)
407   /*for (int i = 0; i < 0x8000; i++)
393408   {
394409   //   m_videoram0[i] = 0x0000;
395410      m_videoram2[i] = 0x0000;
396   }
411   }*/
397412
398413}
399414


Previous 199869 Revisions Next


© 1997-2024 The MAME Team