Previous 199869 Revisions Next

r31001 Tuesday 17th June, 2014 at 02:50:30 UTC by Alex Jackson
goldstar.c: (mostly) fix star100 colors: fg tiles are 4bpp, not 3bpp (nw)
[src/mame/drivers]goldstar.c
[src/mame/video]goldstar.c

trunk/src/mame/drivers/goldstar.c
r31000r31001
68476847   8*8 /* every char takes 8 consecutive bytes */
68486848};
68496849
6850static const gfx_layout sangho_charlayout =
6851{
6852   8,8,            /* 8*8 characters */
6853   RGN_FRAC(1,1),  /* 4096 characters */
6854   4,              /* 4 bits per pixel */
6855   { 0, 2, 4, 6 }, /* the bitplanes are packed in one byte */
6856   { 0*8+0, 0*8+1, 1*8+0, 1*8+1, 2*8+0, 2*8+1, 3*8+0, 3*8+1 },
6857   { 0*32, 1*32, 2*32, 3*32, 4*32, 5*32, 6*32, 7*32 },
6858   32*8   /* every char takes 32 consecutive bytes */
6859};
6860
68506861static const gfx_layout sangho_tilelayout =
68516862{
6852   8,32,    /* 8*32 characters */
6853   1024,    /* 256 tiles */
6854   4,      /* 4 bits per pixel */
6863   8,32,           /* 8*32 characters */
6864   RGN_FRAC(1,1),  /* 256 tiles */
6865   4,              /* 4 bits per pixel */
68556866   { 0, 2, 4, 6 },
68566867   { 0, 1, 1*8+0, 1*8+1, 2*8+0, 2*8+1, 3*8+0, 3*8+1 },
68576868   { 0*8, 4*8, 8*8, 12*8, 16*8, 20*8, 24*8, 28*8,
r31000r31001
69506961GFXDECODE_END
69516962
69526963static GFXDECODE_START( sangho )
6953   GFXDECODE_ENTRY( "gfx1", 0, charlayout,   24, 16 )
6954   GFXDECODE_ENTRY( "gfx2", 0, sangho_tilelayout, 128 + (2 * 16),  16 )
6964   GFXDECODE_ENTRY( "gfx1", 0, sangho_charlayout, 0, 16 )
6965   GFXDECODE_ENTRY( "gfx2", 0, sangho_tilelayout, 0, 16 )
69556966/* 7*16,16 title girl in 1st color
69566967   6*16,16 watermelon in game
69576968   4*16,16 blueberry in game
r31000r31001
85938604   ROM_REGION( 0x80000, "maincpu", 0 )
85948605   ROM_LOAD( "str-100_051212__27c512.1e",  0x00000, 0x10000, CRC(6c73ae4e) SHA1(8476b77a190a653b2a47682072bc9b4db594c02e) )
85958606
8596   ROM_REGION( 0x80000, "gfx1", 0 )
8607   ROM_REGION( 0x20000, "gfx1", 0 )
85978608   ROM_LOAD( "str_l3__flash29c011a-15.3l", 0x00000, 0x20000, CRC(89bf5935) SHA1(f8af107e21a9157ea5056eedbda36a1b99c5df5b) )
85988609
8599   ROM_REGION( 0x80000, "gfx2", 0 )
8610   ROM_REGION( 0x20000, "gfx2", 0 )
86008611   ROM_LOAD( "str_m3__flash29c011a-15.3m", 0x00000, 0x20000, CRC(fff9ea0e) SHA1(6125c99e684ac639a0f85cbb00c26131a23324aa) )
86018612
86028613   ROM_REGION( 0x40000, "oki", 0 ) /* Audio ADPCM */
r31000r31001
86178628   ROM_REGION( 0x80000, "maincpu", 0 )
86188629   ROM_LOAD( "crazy_14_030418.bin",  0x00000, 0x10000, CRC(0071fb2a) SHA1(771b9b2b9fdf11dafc5ec0dbababc181d2ce4c75) )
86198630
8620   ROM_REGION( 0x80000, "gfx1", 0 )
8631   ROM_REGION( 0x20000, "gfx1", 0 )
86218632   ROM_LOAD( "crazy_h3.bin", 0x00000, 0x20000, CRC(6b3692b5) SHA1(ffdcd4e59d7c009fd76a65e8f87642da35f996f4) )
86228633
8623   ROM_REGION( 0x80000, "gfx2", 0 )
8634   ROM_REGION( 0x20000, "gfx2", 0 )
86248635   ROM_LOAD( "crazy_j3.bin", 0x00000, 0x20000, CRC(e375cd4b) SHA1(68888126ff9743cd589f3426205231bc3a896588) )
86258636
86268637   ROM_REGION( 0x40000, "oki", 0 ) /* Audio ADPCM */
trunk/src/mame/video/goldstar.c
r31000r31001
100100   int attr = m_fg_atrram[tile_index];
101101
102102   SET_TILE_INFO_MEMBER(0,
103//         code | (attr & 0xf0)<<4,
104103         code | (attr & 0x0f)<<8,
105         attr&0x0f,
104         (attr&0x70)>>4,
106105         0);
107106}
108107
r31000r31001
112111   int attr = m_bg_atrram[tile_index];
113112
114113   SET_TILE_INFO_MEMBER(1,
115//         code | (attr & 0xf0)<<4,
116114         code | (attr & 0x0f)<<8,
117         attr&0x0f,
115         (attr&0xf0)>>4,
118116         0);
119117}
120118
r31000r31001
273271
274272   SET_TILE_INFO_MEMBER(1,
275273         code | (attr & 0x0f)<<8,
276//         (attr&0xf0)>>4,
277         (attr&0x0f)>>0,
274         (attr&0xf0)>>4,
278275         0);
279276}
280277
r31000r31001
285282
286283   SET_TILE_INFO_MEMBER(1,
287284         code | (attr & 0x0f)<<8,
288//         (attr&0xf0)>>4,
289         (attr&0x0f)>>0,
285         (attr&0xf0)>>4,
290286         0);
291287}
292288
r31000r31001
297293
298294   SET_TILE_INFO_MEMBER(1,
299295         code | (attr & 0x0f)<<8,
300//         (attr&0xf0)>>4,
301         (attr&0x0f)>>0,
296         (attr&0xf0)>>4,
302297         0);
303298}
304299

Previous 199869 Revisions Next


© 1997-2024 The MAME Team