Previous 199869 Revisions Next

r18120 Monday 24th September, 2012 at 19:21:47 UTC by hap
correct colors
[src/mame/drivers]jack.c
[src/mame/includes]jack.h
[src/mame/video]jack.c

trunk/src/mame/video/jack.c
r18119r18120
133133TILE_GET_INFO_MEMBER(jack_state::joinem_get_bg_tile_info)
134134{
135135   int code = m_videoram[tile_index] + ((m_colorram[tile_index] & 0x03) << 8);
136   int color = (m_colorram[tile_index] & 0x38) >> 3;
136   int color = (m_colorram[tile_index] & 0x38) >> 3 | m_joinem_color_bank;
137137
138138   SET_TILE_INFO_MEMBER(0, code, color, 0);
139139}
trunk/src/mame/includes/jack.h
r18119r18120
2828
2929   /* misc */
3030   int m_timer_rate;
31   int m_joinem_snd_bit;
31   UINT8 m_joinem_snd_bit;
32   UINT8 m_joinem_color_bank;
3233   int m_question_address;
3334   int m_question_rom;
3435   int m_remap_address[16];
3536
3637   DECLARE_WRITE8_MEMBER(jack_sh_command_w);
37   DECLARE_WRITE8_MEMBER(joinem_misc_w);
38   DECLARE_WRITE8_MEMBER(joinem_control_w);
3839   DECLARE_READ8_MEMBER(striv_question_r);
3940   DECLARE_WRITE8_MEMBER(jack_videoram_w);
4041   DECLARE_WRITE8_MEMBER(jack_colorram_w);
trunk/src/mame/drivers/jack.c
r18119r18120
7070
7171/* these handlers are guessed, because otherwise you can't enter test mode */
7272
73WRITE8_MEMBER(jack_state::joinem_misc_w)
73WRITE8_MEMBER(jack_state::joinem_control_w)
7474{
7575   flip_screen_set(data & 0x80);
7676   m_joinem_snd_bit = data & 1;
77   m_joinem_color_bank = data & 0x18;
78   
79   m_bg_tilemap->mark_all_dirty();
7780}
7881
7982CUSTOM_INPUT_MEMBER(jack_state::sound_check_r)
r18119r18120
159162   AM_RANGE(0xb503, 0xb503) AM_READ_PORT("IN1")
160163   AM_RANGE(0xb504, 0xb504) AM_READ_PORT("IN2")
161164   AM_RANGE(0xb506, 0xb507) AM_READWRITE(jack_flipscreen_r, jack_flipscreen_w)
162   AM_RANGE(0xb700, 0xb700) AM_WRITE(joinem_misc_w)
165   AM_RANGE(0xb700, 0xb700) AM_WRITE(joinem_control_w)
163166   AM_RANGE(0xb800, 0xbbff) AM_RAM_WRITE(jack_videoram_w) AM_SHARE("videoram")
164167   AM_RANGE(0xbc00, 0xbfff) AM_RAM_WRITE(jack_colorram_w) AM_SHARE("colorram")
165168ADDRESS_MAP_END
r18119r18120
11511154   ROM_LOAD( "join6.p1", 0x2000, 0x1000, CRC(2b533261) SHA1(ce6c1fa833b34aeb401f430d212415c33beb2922) )
11521155
11531156   ROM_REGION( 0x100, "proms", 0 ) /* colours */
1154   ROM_LOAD_NIB_LOW(  "l82s129.11n", 0x0000, 0x100, CRC(7b724211) SHA1(7396c773e8d48dea856d9482d6c48de966616c83) )
1155   ROM_LOAD_NIB_HIGH( "h82s129.12n", 0x0000, 0x100, CRC(2e81c5ff) SHA1(e103c8813af704d5de11fe705de5105ff3a691c3) )
1157   ROM_LOAD_NIB_LOW(  "l82s129.11n", 0x000, 0x100, CRC(7b724211) SHA1(7396c773e8d48dea856d9482d6c48de966616c83) )
1158   ROM_LOAD_NIB_HIGH( "h82s129.12n", 0x000, 0x100, CRC(2e81c5ff) SHA1(e103c8813af704d5de11fe705de5105ff3a691c3) )
11561159ROM_END
11571160
11581161
r18119r18120
11671170   ROM_LOAD( "08.c15", 0x00000, 0x1000, CRC(fd84106b) SHA1(891853d2b39850a981016108b74ca20337d2cdd8) )
11681171
11691172   ROM_REGION( 0x6000, "gfx1", 0 ) /* gfx - 8x8x3bpp */
1170   ROM_LOAD( "05.k04", 0x0000, 0x2000, CRC(64026934) SHA1(a5342335d02d34fa6ba2b29484ed71ecc96292f2) )
1173   ROM_LOAD( "07.h04", 0x0000, 0x2000, CRC(e2f73e99) SHA1(61cb09ff424ba63b892b4822e7ed916af73412f1) )
11711174   ROM_LOAD( "06.j04", 0x2000, 0x2000, CRC(94b5f676) SHA1(32c27854726636c4ce03bb6a83b32d04ed6c42af) )
1172   ROM_LOAD( "07.h04", 0x4000, 0x2000, CRC(e2f73e99) SHA1(61cb09ff424ba63b892b4822e7ed916af73412f1) )
1175   ROM_LOAD( "05.k04", 0x4000, 0x2000, CRC(64026934) SHA1(a5342335d02d34fa6ba2b29484ed71ecc96292f2) )
11731176
11741177   ROM_REGION( 0x200, "proms", 0 ) /* colours */
1175   ROM_LOAD( "diatec_h.bin", 0x000, 0x100, CRC(938601b1) SHA1(8213284989bebb5f7375878181840de8079dc1f3) )
1176   ROM_LOAD( "diatec_l.bin", 0x100, 0x100, CRC(b04d466a) SHA1(1438abeae76ef807ba34bd6d3e4c44f707dbde6e) )
1178   ROM_LOAD_NIB_LOW(  "diatec_l.bin", 0x000, 0x100, CRC(b04d466a) SHA1(1438abeae76ef807ba34bd6d3e4c44f707dbde6e) )
1179   ROM_LOAD_NIB_HIGH( "diatec_h.bin", 0x000, 0x100, CRC(938601b1) SHA1(8213284989bebb5f7375878181840de8079dc1f3) )
11771180ROM_END
11781181
11791182
r18119r18120
11931196   ROM_LOAD( "lover.p1", 0x4000, 0x2000, CRC(cda0d87e) SHA1(efff230e994e21705902f252e50ee40a20444c0f) )
11941197
11951198   ROM_REGION( 0x200, "proms", 0 )
1196   ROM_LOAD_NIB_LOW( "color.n11", 0x0000, 0x200, CRC(cf4a16ae) SHA1(e17c5dfd73c5bc55c0a929cf65ee5b516c9776a5) )
1197   ROM_LOAD_NIB_HIGH( "color.n12", 0x0000, 0x200, CRC(4b11ac21) SHA1(d9e7cecfb7237335288ab6f94bb35696d8291bdf) )
1199   ROM_LOAD_NIB_LOW(  "color.n11", 0x000, 0x200, CRC(cf4a16ae) SHA1(e17c5dfd73c5bc55c0a929cf65ee5b516c9776a5) )
1200   ROM_LOAD_NIB_HIGH( "color.n12", 0x000, 0x200, CRC(4b11ac21) SHA1(d9e7cecfb7237335288ab6f94bb35696d8291bdf) )
11981201ROM_END
11991202
12001203

Previous 199869 Revisions Next


© 1997-2024 The MAME Team