Cleanups and version bump to 0.124u2.

This commit is contained in:
Aaron Giles 2008-04-12 05:16:26 +00:00
parent f57b3da9a3
commit 439dbe872a
25 changed files with 175 additions and 175 deletions

View File

@ -140,7 +140,7 @@ static UINT32 readpos = 1; // serial bank selection position (9-bit)
PORT_BIT ( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_BIT ( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
/* Caused 01081: /* Caused 01081:
* PORT_BIT ( 0x40, IP_ACTIVE_LOW, IPT_START1 ) \ * PORT_BIT ( 0x40, IP_ACTIVE_LOW, IPT_START1 ) \
* PORT_BIT ( 0x80, IP_ACTIVE_LOW, IPT_START2 ) * PORT_BIT ( 0x80, IP_ACTIVE_LOW, IPT_START2 )
*/ */

View File

@ -255,7 +255,7 @@ static INPUT_PORTS_START( megazone )
PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) ) PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) )
PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) ) PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) )
PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) )
// PORT_DIPSETTING( 0x00, DEF_STR( 1C_0C ) ) "Not use" // PORT_DIPSETTING( 0x00, DEF_STR( 1C_0C ) ) "Not use"
INPUT_PORTS_END INPUT_PORTS_END
static INPUT_PORTS_START( megazona ) static INPUT_PORTS_START( megazona )

View File

@ -1403,12 +1403,12 @@ static READ16_HANDLER( taitoz_msb_sound_r )
/**** sound pan control ****/ /**** sound pan control ****/
static WRITE8_HANDLER( taitoz_pancontrol ) static WRITE8_HANDLER( taitoz_pancontrol )
{ {
// static UINT8 taitoz_pandata[4]; // static UINT8 taitoz_pandata[4];
offset = offset&3; offset = offset&3;
// taitoz_pandata[offset] = data; // taitoz_pandata[offset] = data;
// popmessage(" pan %02x %02x %02x %02x", taitoz_pandata[0], taitoz_pandata[1], taitoz_pandata[2], taitoz_pandata[3] ); // popmessage(" pan %02x %02x %02x %02x", taitoz_pandata[0], taitoz_pandata[1], taitoz_pandata[2], taitoz_pandata[3] );
flt_volume_set_volume(offset, data / 255.0f); flt_volume_set_volume(offset, data / 255.0f);
} }

View File

@ -137,7 +137,7 @@ static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 )
AM_RANGE(0x0000, 0x7fff) AM_ROM AM_RANGE(0x0000, 0x7fff) AM_ROM
AM_RANGE(0x8000, 0xbfff) AM_RAM AM_RANGE(0x8000, 0xbfff) AM_RAM
AM_RANGE(0xc000, 0xc000) AM_READ(soundlatch_r) /* Sound latch read */ AM_RANGE(0xc000, 0xc000) AM_READ(soundlatch_r) /* Sound latch read */
// AM_RANGE(0xd000, 0xd000) AM_WRITE(SMH_NOP) /* ??? */ // AM_RANGE(0xd000, 0xd000) AM_WRITE(SMH_NOP) /* ??? */
AM_RANGE(0xe000, 0xe000) AM_READWRITE(OKIM6295_status_0_r, OKIM6295_data_0_w) /* M6295 */ AM_RANGE(0xe000, 0xe000) AM_READWRITE(OKIM6295_status_0_r, OKIM6295_data_0_w) /* M6295 */
AM_RANGE(0xf000, 0xf000) AM_WRITE(YM2151_register_port_0_w) /* YM2151 */ AM_RANGE(0xf000, 0xf000) AM_WRITE(YM2151_register_port_0_w) /* YM2151 */
AM_RANGE(0xf001, 0xf001) AM_READWRITE(YM2151_status_port_0_r, YM2151_data_port_0_w) /* YM2151 */ AM_RANGE(0xf001, 0xf001) AM_READWRITE(YM2151_status_port_0_r, YM2151_data_port_0_w) /* YM2151 */

View File

@ -308,7 +308,7 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START( i8039_port_map, ADDRESS_SPACE_IO, 8 ) static ADDRESS_MAP_START( i8039_port_map, ADDRESS_SPACE_IO, 8 )
// AM_RANGE(I8039_t1, I8039_t1) // AM_RANGE(I8039_t1, I8039_t1)
AM_RANGE(0x00, 0xff) AM_WRITE(snddata_w) AM_RANGE(0x00, 0xff) AM_WRITE(snddata_w)
AM_RANGE(I8039_p1, I8039_p1) AM_WRITE(p1_w) AM_RANGE(I8039_p1, I8039_p1) AM_WRITE(p1_w)
AM_RANGE(I8039_p2, I8039_p2) AM_WRITE(p2_w) AM_RANGE(I8039_p2, I8039_p2) AM_WRITE(p2_w)

View File

@ -109,37 +109,37 @@ const UINT8 bomberman_decryption_table[256] = {
const UINT8 lethalth_decryption_table[256] = { const UINT8 lethalth_decryption_table[256] = {
0x7f,0x26,0x5d,xxxx,0xba,xxxx,0x1e,0x5e, 0xb8,xxxx,0xbc,0xe8,0x01,xxxx,0x4a,0x25, /* 00 */ 0x7f,0x26,0x5d,xxxx,0xba,xxxx,0x1e,0x5e, 0xb8,xxxx,0xbc,0xe8,0x01,xxxx,0x4a,0x25, /* 00 */
// !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! // !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!!
xxxx,0xbd,xxxx,0x22,0x10,xxxx,0x02,0x57, 0x70,xxxx,0x7c,xxxx,0xe7,0x52,xxxx,0xa9, /* 10 */ xxxx,0xbd,xxxx,0x22,0x10,xxxx,0x02,0x57, 0x70,xxxx,0x7c,xxxx,0xe7,0x52,xxxx,0xa9, /* 10 */
// !!!! !!!! !!!! !!!! !!!! // !!!! !!!! !!!! !!!! !!!!
xxxx,xxxx,0xc6,0x06,0xa0,0xfe,0xcf,0x8e, 0x43,0x8f,0x2d,xxxx,0xd4,0x85,0x75,0xa2, /* 20 */ xxxx,xxxx,0xc6,0x06,0xa0,0xfe,0xcf,0x8e, 0x43,0x8f,0x2d,xxxx,0xd4,0x85,0x75,0xa2, /* 20 */
// !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! // !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!!
0x3d,xxxx,xxxx,0x38,0x7c,0x89,0xd1,0x80, 0x3b,0x72,0x07,xxxx,0x42,0x37,0x0a,0x18, /* 30 */ 0x3d,xxxx,xxxx,0x38,0x7c,0x89,0xd1,0x80, 0x3b,0x72,0x07,xxxx,0x42,0x37,0x0a,0x18, /* 30 */
// !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! // !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!!
0x88,0xb4,0x98,0x8b,0xb9,0x9c,0xad,0x0e, 0x2b,xxxx,0xbf,xxxx,0x55,xxxx,0x56,0xb0, /* 40 */ 0x88,0xb4,0x98,0x8b,0xb9,0x9c,0xad,0x0e, 0x2b,xxxx,0xbf,xxxx,0x55,xxxx,0x56,0xb0, /* 40 */
// !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! // !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!!
0x93,0x91,xxxx,0xeb,xxxx,0x50,0x41,0x29, 0x47,xxxx,xxxx,0x60,xxxx,0xab,xxxx,xxxx, /* 50 */ 0x93,0x91,xxxx,0xeb,xxxx,0x50,0x41,0x29, 0x47,xxxx,xxxx,0x60,xxxx,0xab,xxxx,xxxx, /* 50 */
// !!!! !!!! !!!! !!!! !!!! !!!! !!!! // !!!! !!!! !!!! !!!! !!!! !!!! !!!!
0xc3,0xe2,0xd0,0xb2,0x11,0x79,xxxx,0x08, xxxx,0xfb,xxxx,0x2c,0x23,xxxx,0x28,0x0d, /* 60 */ 0xc3,0xe2,0xd0,0xb2,0x11,0x79,xxxx,0x08, xxxx,0xfb,xxxx,0x2c,0x23,xxxx,0x28,0x0d, /* 60 */
// !!!! !!!! !!!! !!!! !!!! !!!! // !!!! !!!! !!!! !!!! !!!! !!!!
xxxx,xxxx,xxxx,0x83,0x3c,xxxx,0x1b,0x34, 0x5b,xxxx,0x40,xxxx,xxxx,0x04,0xfc,0x09, /* 70 */ xxxx,xxxx,xxxx,0x83,0x3c,xxxx,0x1b,0x34, 0x5b,xxxx,0x40,xxxx,xxxx,0x04,0xfc,0x09, /* 70 */
// !!!! !!!! !!!! !!!! !!!! // !!!! !!!! !!!! !!!! !!!!
0xb1,0xf3,0x8a,xxxx,xxxx,0x87,xxxx,xxxx, xxxx,xxxx,xxxx,xxxx,0xbe,0x84,0x1f,0xe6, /* 80 */ 0xb1,0xf3,0x8a,xxxx,xxxx,0x87,xxxx,xxxx, xxxx,xxxx,xxxx,xxxx,0xbe,0x84,0x1f,0xe6, /* 80 */
// !!!! !!!! !!!! !!!! // !!!! !!!! !!!! !!!!
0xff,xxxx,0x12,xxxx,0xb5,0x36,xxxx,0xb3, xxxx,xxxx,xxxx,0xd2,0x4e,xxxx,xxxx,xxxx, /* 90 */ 0xff,xxxx,0x12,xxxx,0xb5,0x36,xxxx,0xb3, xxxx,xxxx,xxxx,0xd2,0x4e,xxxx,xxxx,xxxx, /* 90 */
// !!!! !!!! !!!! // !!!! !!!! !!!!
0xa5,xxxx,xxxx,0xc7,xxxx,0x27,0x0b,xxxx, 0x20,xxxx,xxxx,xxxx,xxxx,xxxx,0x61,0x7f, /* A0 */ 0xa5,xxxx,xxxx,0xc7,xxxx,0x27,0x0b,xxxx, 0x20,xxxx,xxxx,xxxx,xxxx,xxxx,0x61,0x7f, /* A0 */
// !!!! !!!! !!!! !!!! // !!!! !!!! !!!! !!!!
xxxx,xxxx,0x86,0x0f,xxxx,0xb7,xxxx,0x4f, xxxx,xxxx,0xc0,0xfd,xxxx,0x39,xxxx,0x77, /* B0 */ xxxx,xxxx,0x86,0x0f,xxxx,0xb7,xxxx,0x4f, xxxx,xxxx,0xc0,0xfd,xxxx,0x39,xxxx,0x77, /* B0 */
// !!!! !!!! !!!! !!!! !!!! // !!!! !!!! !!!! !!!! !!!!
0x05,0x3a,xxxx,0x48,0x92,0x7a,0x3e,0x03, xxxx,0xf8,xxxx,0x59,0xa8,0x5f,0xf9,0xbb, /* C0 */ 0x05,0x3a,xxxx,0x48,0x92,0x7a,0x3e,0x03, xxxx,0xf8,xxxx,0x59,0xa8,0x5f,0xf9,0xbb, /* C0 */
// !!!! !!!! !!!! !!!! !!!! !!!! !!!! // !!!! !!!! !!!! !!!! !!!! !!!! !!!!
0x81,0xfa,0x9d,0xe9,0x2e,0xa1,0xc1,0x33, xxxx,0x78,xxxx,0x0c,xxxx,0x24,0xaa,0xac, /* D0 */ 0x81,0xfa,0x9d,0xe9,0x2e,0xa1,0xc1,0x33, xxxx,0x78,xxxx,0x0c,xxxx,0x24,0xaa,0xac, /* D0 */
// !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! // !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!!
xxxx,0xb6,xxxx,0xea,xxxx,0x73,0xe5,0x58, 0x00,0xf7,xxxx,0x74,xxxx,0x7e,xxxx,0xa3, /* E0 */ xxxx,0xb6,xxxx,0xea,xxxx,0x73,0xe5,0x58, 0x00,0xf7,xxxx,0x74,xxxx,0x7e,xxxx,0xa3, /* E0 */
// !!!! !!!! !!!! !!!! !!!! !!!! // !!!! !!!! !!!! !!!! !!!! !!!!
xxxx,0x5a,0xf6,0x32,0x46,0x2a,xxxx,xxxx, 0x53,0x4b,0x90,xxxx,0x51,0x68,0x99,0x13, /* F0 */ xxxx,0x5a,0xf6,0x32,0x46,0x2a,xxxx,xxxx, 0x53,0x4b,0x90,xxxx,0x51,0x68,0x99,0x13, /* F0 */
// !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! // !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!!
}; };
/* /*
missing opcode: missing opcode:

View File

@ -534,8 +534,8 @@ READ16_HANDLER( legionna_mcu_r )
} }
/********************************************************************* /*********************************************************************
400-5ff - Protection reads 400-5ff - Protection reads
*********************************************************************/ *********************************************************************/
case (0x470/2): return (mame_rand(machine) &0xffff); /* read PC $110a, could be some sort of control word: sometimes a bit is changed then it's poked back in... */ case (0x470/2): return (mame_rand(machine) &0xffff); /* read PC $110a, could be some sort of control word: sometimes a bit is changed then it's poked back in... */
case (0x582/2): return (0); /* read PC $3594 */ case (0x582/2): return (0); /* read PC $3594 */
@ -547,8 +547,8 @@ READ16_HANDLER( legionna_mcu_r )
/********************************************************************* /*********************************************************************
700-7ff - Non-protection reads 700-7ff - Non-protection reads
*********************************************************************/ *********************************************************************/
/* Seibu Sound System */ /* Seibu Sound System */
case (0x708/2): return seibu_main_word_r(machine,2,0); case (0x708/2): return seibu_main_word_r(machine,2,0);
@ -578,8 +578,8 @@ WRITE16_HANDLER( legionna_mcu_w )
} }
/********************************************************************* /*********************************************************************
400-5ff - Protection writes 400-5ff - Protection writes
*********************************************************************/ *********************************************************************/
/* Trigger Table upload */ /* Trigger Table upload */
case (0x432/2): { copd2_set_tabledata(data, machine); break; } case (0x432/2): { copd2_set_tabledata(data, machine); break; }
@ -621,8 +621,8 @@ WRITE16_HANDLER( legionna_mcu_w )
} }
/********************************************************************* /*********************************************************************
600-6ff - Video Registers 600-6ff - Video Registers
*********************************************************************/ *********************************************************************/
// 61a bit 0 is flipscreen // 61a bit 0 is flipscreen
// 61c probably layer disables, like Dcon // 61c probably layer disables, like Dcon
@ -635,8 +635,8 @@ WRITE16_HANDLER( legionna_mcu_w )
case (0x62a/2): { legionna_scrollram16[5] = cop_mcu_ram[offset]; break; } case (0x62a/2): { legionna_scrollram16[5] = cop_mcu_ram[offset]; break; }
/********************************************************************* /*********************************************************************
700-7ff - Output (Seibu Sound System) 700-7ff - Output (Seibu Sound System)
*********************************************************************/ *********************************************************************/
case (0x700/2): { seibu_main_word_w(machine,0,cop_mcu_ram[offset],0xff00); break; } case (0x700/2): { seibu_main_word_w(machine,0,cop_mcu_ram[offset],0xff00); break; }
case (0x704/2): { seibu_main_word_w(machine,1,cop_mcu_ram[offset],0xff00); break; } case (0x704/2): { seibu_main_word_w(machine,1,cop_mcu_ram[offset],0xff00); break; }
@ -995,8 +995,8 @@ READ16_HANDLER( heatbrl_mcu_r )
} }
/********************************************************************* /*********************************************************************
400-5ff - Protection reads 400-5ff - Protection reads
*********************************************************************/ *********************************************************************/
case (0x580/2): { return xy_check; } /*hit protection*/ case (0x580/2): { return xy_check; } /*hit protection*/
case (0x582/2): { if(input_code_pressed(KEYCODE_X)) { return 0; } else { return 3; } } /*---- ---- ---- --xx used bits*/ case (0x582/2): { if(input_code_pressed(KEYCODE_X)) { return 0; } else { return 3; } } /*---- ---- ---- --xx used bits*/
@ -1010,12 +1010,12 @@ READ16_HANDLER( heatbrl_mcu_r )
case (0x59a/2): { return ((prot_bcd[2] & 0xffff0000) >> 16) + 0x3030; } case (0x59a/2): { return ((prot_bcd[2] & 0xffff0000) >> 16) + 0x3030; }
case (0x59c/2): { return 0x3030; } case (0x59c/2): { return 0x3030; }
//case (0x5b0/2): return (cop_mcu_ram[offset]); /* bit 15 is branched on a few times in the $1938 area */ //case (0x5b0/2): return (cop_mcu_ram[offset]); /* bit 15 is branched on a few times in the $1938 area */
case (0x5b4/2): return (0); /* read at $1932 and stored in ram before +0x5b0 bit 15 tested */ case (0x5b4/2): return (0); /* read at $1932 and stored in ram before +0x5b0 bit 15 tested */
/********************************************************************* /*********************************************************************
700-7ff - Non-protection reads 700-7ff - Non-protection reads
*********************************************************************/ *********************************************************************/
/* Seibu Sound System */ /* Seibu Sound System */
case (0x7c8/2): return seibu_main_word_r(machine,2,0); case (0x7c8/2): return seibu_main_word_r(machine,2,0);
@ -1044,8 +1044,8 @@ WRITE16_HANDLER( heatbrl_mcu_w )
} }
/********************************************************************* /*********************************************************************
400-5ff - Protection writes 400-5ff - Protection writes
*********************************************************************/ *********************************************************************/
case (0x420/2): { prot_bcd[0] = protection_bcd_jsr(cop_mcu_ram[offset]); break; } case (0x420/2): { prot_bcd[0] = protection_bcd_jsr(cop_mcu_ram[offset]); break; }
case (0x422/2): { prot_bcd[1] = protection_bcd_jsr(cop_mcu_ram[offset]); break; } case (0x422/2): { prot_bcd[1] = protection_bcd_jsr(cop_mcu_ram[offset]); break; }
@ -1150,8 +1150,8 @@ WRITE16_HANDLER( heatbrl_mcu_w )
/********************************************************************* /*********************************************************************
600-6ff - Video Registers 600-6ff - Video Registers
*********************************************************************/ *********************************************************************/
// 65a bit 0 is flipscreen // 65a bit 0 is flipscreen
// 65c probably layer disables, like Dcon? Used on screen when you press P1-4 start (values 13, 11, 0 seen) // 65c probably layer disables, like Dcon? Used on screen when you press P1-4 start (values 13, 11, 0 seen)
@ -1164,8 +1164,8 @@ WRITE16_HANDLER( heatbrl_mcu_w )
case (0x66a/2): { legionna_scrollram16[5] = cop_mcu_ram[offset]; break; } case (0x66a/2): { legionna_scrollram16[5] = cop_mcu_ram[offset]; break; }
/********************************************************************* /*********************************************************************
700-7ff - Output (Seibu Sound System) 700-7ff - Output (Seibu Sound System)
*********************************************************************/ *********************************************************************/
case (0x7c0/2): { seibu_main_word_w(machine,0,cop_mcu_ram[offset],0xff00); break; } case (0x7c0/2): { seibu_main_word_w(machine,0,cop_mcu_ram[offset],0xff00); break; }
case (0x7c4/2): { seibu_main_word_w(machine,1,cop_mcu_ram[offset],0xff00); break; } case (0x7c4/2): { seibu_main_word_w(machine,1,cop_mcu_ram[offset],0xff00); break; }
@ -1236,8 +1236,8 @@ WRITE16_HANDLER( sdgndmrb_cop_mcu_w )
} }
/********************************************************************* /*********************************************************************
400-5ff - Protection writes 400-5ff - Protection writes
*********************************************************************/ *********************************************************************/
case (0x40c/2): { dma_size = cop_mcu_ram[offset]; break; } case (0x40c/2): { dma_size = cop_mcu_ram[offset]; break; }
@ -1498,8 +1498,8 @@ WRITE16_HANDLER( denjinmk_cop_mcu_w )
} }
/********************************************************************* /*********************************************************************
400-5ff - Protection writes 400-5ff - Protection writes
*********************************************************************/ *********************************************************************/
case (0x420/2): { prot_bcd[0] = protection_bcd_jsr(cop_mcu_ram[offset]); break; } case (0x420/2): { prot_bcd[0] = protection_bcd_jsr(cop_mcu_ram[offset]); break; }
case (0x422/2): { prot_bcd[1] = protection_bcd_jsr(cop_mcu_ram[offset]); break; } case (0x422/2): { prot_bcd[1] = protection_bcd_jsr(cop_mcu_ram[offset]); break; }
@ -1576,8 +1576,8 @@ WRITE16_HANDLER( godzilla_cop_mcu_w )
} }
/********************************************************************* /*********************************************************************
400-5ff - Protection writes 400-5ff - Protection writes
*********************************************************************/ *********************************************************************/
case (0x420/2): { prot_bcd[0] = protection_bcd_jsr(cop_mcu_ram[offset]); break; } case (0x420/2): { prot_bcd[0] = protection_bcd_jsr(cop_mcu_ram[offset]); break; }
case (0x422/2): { prot_bcd[1] = protection_bcd_jsr(cop_mcu_ram[offset]); break; } case (0x422/2): { prot_bcd[1] = protection_bcd_jsr(cop_mcu_ram[offset]); break; }
@ -1745,8 +1745,8 @@ WRITE16_HANDLER( copdx_0_w )
} }
/********************************************************************* /*********************************************************************
400-5ff - Protection writes 400-5ff - Protection writes
*********************************************************************/ *********************************************************************/
case (0x432/2): { copd2_set_tabledata(data, machine); break; } case (0x432/2): { copd2_set_tabledata(data, machine); break; }
case (0x434/2): { copd2_set_tableoffset(data, machine); break; } case (0x434/2): { copd2_set_tableoffset(data, machine); break; }
@ -1899,8 +1899,8 @@ WRITE16_HANDLER( copdxbl_0_w )
} }
/********************************************************************* /*********************************************************************
400-5ff - Protection writes 400-5ff - Protection writes
*********************************************************************/ *********************************************************************/
case (0x4a0/2): case (0x4a0/2):

View File

@ -138,7 +138,7 @@ OUTPUT PORTS
TODO: TODO:
the scroll2/scroll3 disable bits are supported by the emulation, the scroll2/scroll3 disable bits are supported by the emulation,
while the scroll1 weird effect is not (it doesn't seem to make a while the scroll1 weird effect is not (it doesn't seem to make a
difference on any game). difference on any game).
@ -181,7 +181,7 @@ Some registers move from game to game.. following example strider
bit 5: copy page 5 (stars2) bit 5: copy page 5 (stars2)
An important quirk is that if bit 0 is not set (sprite page is not copied) An important quirk is that if bit 0 is not set (sprite page is not copied)
page 0 in gfxram is not skipped but instead is copied to page 1; that is, page 0 in gfxram is not skipped but instead is copied to page 1; that is,
all pages are moved down by one. For the other pages, if the bit is not all pages are moved down by one. For the other pages, if the bit is not
set the gfxram page is skipped. set the gfxram page is skipped.
@ -1270,13 +1270,13 @@ if (cps1_game_config->priority[0] && offset == cps1_game_config->priority[0]/2 &
} }
/* /*
The main CPU writes the palette to gfxram, and the CPS-B custom copies it The main CPU writes the palette to gfxram, and the CPS-B custom copies it
to the real palette RAM, which is separated from gfxram. to the real palette RAM, which is separated from gfxram.
This is done ONLY after the palette base register is written to. It is not This is done ONLY after the palette base register is written to. It is not
known what the exact timing should be, how long it should take and when it known what the exact timing should be, how long it should take and when it
should happen. We are assuming that the copy happens immediately, since it should happen. We are assuming that the copy happens immediately, since it
fixes glitches in the ghouls intro, but it might happen at next vblank. fixes glitches in the ghouls intro, but it might happen at next vblank.
*/ */
if (offset == CPS1_PALETTE_BASE/2) if (offset == CPS1_PALETTE_BASE/2)
cps1_build_palette(machine, cps1_base(CPS1_PALETTE_BASE,cps1_palette_align)); cps1_build_palette(machine, cps1_base(CPS1_PALETTE_BASE,cps1_palette_align));
} }
@ -1535,7 +1535,7 @@ static int gfxrom_bank_mapper(running_machine *machine, int type, int code)
} }
#ifdef MAME_DEBUG #ifdef MAME_DEBUG
// popmessage("tile %02x/%04x out of range", type,code>>shift); // popmessage("tile %02x/%04x out of range", type,code>>shift);
#endif #endif
return -1; return -1;
@ -1577,8 +1577,8 @@ static TILE_GET_INFO( get_tile0_info )
code = gfxrom_bank_mapper(machine, GFXTYPE_SCROLL1, code); code = gfxrom_bank_mapper(machine, GFXTYPE_SCROLL1, code);
/* allows us to reproduce a problem seen with a ffight board where USA and Japanese /* allows us to reproduce a problem seen with a ffight board where USA and Japanese
roms have been mixed to be reproduced (ffightua) -- it looks like each column roms have been mixed to be reproduced (ffightua) -- it looks like each column
should alternate between the left and right side of the 16x16 tiles */ should alternate between the left and right side of the 16x16 tiles */
gfxset = (tile_index & 0x20) >> 5; gfxset = (tile_index & 0x20) >> 5;
SET_TILE_INFO( SET_TILE_INFO(
@ -1734,10 +1734,10 @@ static void cps1_build_palette(running_machine *machine, const UINT16* const pal
int ctrl = cps1_port(cps1_game_config->palette_control); int ctrl = cps1_port(cps1_game_config->palette_control);
/* /*
The palette is copied only for pages that are enabled in the ctrl The palette is copied only for pages that are enabled in the ctrl
register. Note that if the sprite palette (page 0) is skipped, the register. Note that if the sprite palette (page 0) is skipped, the
all the following pages are scaled down by one. all the following pages are scaled down by one.
*/ */
for (page = 0; page < 6; ++page) for (page = 0; page < 6; ++page)
{ {
if (BIT(ctrl,page)) if (BIT(ctrl,page))

View File

@ -9,4 +9,4 @@
***************************************************************************/ ***************************************************************************/
const char build_version[] = "0.124u1 ("__DATE__")"; const char build_version[] = "0.124u2 ("__DATE__")";