Previous 199869 Revisions Next

r34505 Tuesday 20th January, 2015 at 00:43:49 UTC by Angelo Salese
Looks more likely, and at least pieces all have different colors now.
[src/mame/drivers]aleck64.c

trunk/src/mame/drivers/aleck64.c
r243016r243017
890890      int pal_offs;
891891      int pal_shift;
892892      //UINT16 tile = m_e90_vram[offs] >> 16;
893      UINT16 pal = m_e90_vram[offs] & 0x3f; // guess: 0x1000 entries / word / 4bpp = 0x7f, bit 6 seems to have some special meaning tho ...
893      UINT16 pal = m_e90_vram[offs] & 0xff; // guess: 0x1000 entries / word / 4bpp = 0x7f, divided by two below (TODO: why?)
894894      INT16 x = m_e90_vram[offs+1] >> 16;
895895      INT16 y = m_e90_vram[offs+1] & 0xffff;
896      pal>>=1;
896897      x>>=1;
897898      pal_offs = (pal*0x20);
898899      pal_offs+= 1; // edit this to get the other colors in the range


Previous 199869 Revisions Next


© 1997-2024 The MAME Team