Cleanups and version bump

This commit is contained in:
Angelo Salese 2011-06-05 22:35:20 +00:00
parent 910fff0955
commit a449c766a2
89 changed files with 387 additions and 387 deletions

View File

@ -1059,7 +1059,7 @@ static void LOADM(am29000_state *am29000)
static void STORE(am29000_state *am29000) static void STORE(am29000_state *am29000)
{ {
UINT32 addr = INST_M_BIT ? I8: GET_RB_VAL; UINT32 addr = INST_M_BIT ? I8: GET_RB_VAL;
// UINT32 r; // UINT32 r;
if (INST_UA_BIT) if (INST_UA_BIT)
fatalerror("Am29000: UA bit set on LOAD\n"); fatalerror("Am29000: UA bit set on LOAD\n");
@ -1067,7 +1067,7 @@ static void STORE(am29000_state *am29000)
if (INST_CE_BIT) if (INST_CE_BIT)
{ {
logerror("Am29000: Attempting a co-processor LOAD!\n"); logerror("Am29000: Attempting a co-processor LOAD!\n");
// r = 0; // r = 0;
} }
else else
{ {

View File

@ -1018,7 +1018,7 @@ static void I386OP(repeat)(i386_state *cpustate, int invert_flag)
UINT32 repeated_eip = cpustate->eip; UINT32 repeated_eip = cpustate->eip;
UINT32 repeated_pc = cpustate->pc; UINT32 repeated_pc = cpustate->pc;
UINT8 opcode; // = FETCH(cpustate); UINT8 opcode; // = FETCH(cpustate);
// UINT32 eas, ead; // UINT32 eas, ead;
UINT32 count; UINT32 count;
INT32 cycle_base = 0, cycle_adjustment = 0; INT32 cycle_base = 0, cycle_adjustment = 0;
UINT8 prefix_flag=1; UINT8 prefix_flag=1;

View File

@ -1177,8 +1177,8 @@ static void PREFIX86(_cmp_axd16)(i8086_state *cpustate) /* Opcode 0x3d */
static void PREFIX86(_aas)(i8086_state *cpustate) /* Opcode 0x3f */ static void PREFIX86(_aas)(i8086_state *cpustate) /* Opcode 0x3f */
{ {
// UINT8 ALcarry=1; // UINT8 ALcarry=1;
// if (cpustate->regs.b[AL]>0xf9) ALcarry=2; // if (cpustate->regs.b[AL]>0xf9) ALcarry=2;
if (AF || ((cpustate->regs.b[AL] & 0xf) > 9)) if (AF || ((cpustate->regs.b[AL] & 0xf) > 9))
{ {

View File

@ -221,14 +221,14 @@ static void (*const PREFIX286(_instruction)[256])(i8086_state *cpustate) =
PREFIX86(_aad), /* 0xd5 */ PREFIX86(_aad), /* 0xd5 */
PREFIX286(_invalid), PREFIX286(_invalid),
PREFIX86(_xlat), /* 0xd7 */ PREFIX86(_xlat), /* 0xd7 */
PREFIX286(_escape), /* 0xd8 */ PREFIX286(_escape), /* 0xd8 */
PREFIX286(_escape), /* 0xd9 */ PREFIX286(_escape), /* 0xd9 */
PREFIX286(_escape), /* 0xda */ PREFIX286(_escape), /* 0xda */
PREFIX286(_escape), /* 0xdb */ PREFIX286(_escape), /* 0xdb */
PREFIX286(_escape), /* 0xdc */ PREFIX286(_escape), /* 0xdc */
PREFIX286(_escape), /* 0xdd */ PREFIX286(_escape), /* 0xdd */
PREFIX286(_escape), /* 0xde */ PREFIX286(_escape), /* 0xde */
PREFIX286(_escape_7), /* 0xdf */ PREFIX286(_escape_7), /* 0xdf */
PREFIX86(_loopne), /* 0xe0 */ PREFIX86(_loopne), /* 0xe0 */
PREFIX86(_loope), /* 0xe1 */ PREFIX86(_loope), /* 0xe1 */
PREFIX86(_loop), /* 0xe2 */ PREFIX86(_loop), /* 0xe2 */

View File

@ -257,9 +257,9 @@ INLINE void store_pack_float80(m68ki_cpu_core *m68k, UINT32 ea, int k, floatx80
INLINE void SET_CONDITION_CODES(m68ki_cpu_core *m68k, floatx80 reg) INLINE void SET_CONDITION_CODES(m68ki_cpu_core *m68k, floatx80 reg)
{ {
// UINT64 *regi; // UINT64 *regi;
// regi = (UINT64 *)® // regi = (UINT64 *)®
REG_FPSR &= ~(FPCC_N|FPCC_Z|FPCC_I|FPCC_NAN); REG_FPSR &= ~(FPCC_N|FPCC_Z|FPCC_I|FPCC_NAN);
@ -1341,7 +1341,7 @@ static void fpgen_rm_reg(m68ki_cpu_core *m68k, UINT16 w2)
} }
case 0x1e: // FGETEXP case 0x1e: // FGETEXP
{ {
// floatx80 temp = source; // floatx80 temp = source;
INT16 temp2; INT16 temp2;
temp2 = source.high; // get the exponent temp2 = source.high; // get the exponent

View File

@ -169,14 +169,14 @@ INLINE UINT16 rdop16( minx_state *minx )
static CPU_EXECUTE( minx ) static CPU_EXECUTE( minx )
{ {
// UINT32 oldpc; // UINT32 oldpc;
UINT8 op; UINT8 op;
minx_state *minx = get_safe_token(device); minx_state *minx = get_safe_token(device);
do do
{ {
debugger_instruction_hook(device, GET_MINX_PC); debugger_instruction_hook(device, GET_MINX_PC);
// oldpc = GET_MINX_PC; // oldpc = GET_MINX_PC;
if ( minx->interrupt_pending ) if ( minx->interrupt_pending )
{ {

View File

@ -312,7 +312,7 @@ void mips3com_tlbwr(mips3_state *mips)
void mips3com_tlbp(mips3_state *mips) void mips3com_tlbp(mips3_state *mips)
{ {
UINT32 tlbindex; UINT32 tlbindex;
// UINT64 vpn; // UINT64 vpn;
/* iterate over TLB entries */ /* iterate over TLB entries */
for (tlbindex = 0; tlbindex < mips->tlbentries; tlbindex++) for (tlbindex = 0; tlbindex < mips->tlbentries; tlbindex++)
@ -329,7 +329,7 @@ void mips3com_tlbp(mips3_state *mips)
} }
/* validate that our tlb_table was in sync */ /* validate that our tlb_table was in sync */
// vpn = ((mips->cpr[0][COP0_EntryHi] >> 13) & 0x07ffffff) << 1; // vpn = ((mips->cpr[0][COP0_EntryHi] >> 13) & 0x07ffffff) << 1;
if (tlbindex != mips->tlbentries) if (tlbindex != mips->tlbentries)
mips->cpr[0][COP0_Index] = tlbindex; mips->cpr[0][COP0_Index] = tlbindex;
else else

View File

@ -178,7 +178,7 @@ static void start_handler(void *data, const char *tagname, const char **attribut
hash_collection hashes; hash_collection hashes;
astring all_functions; astring all_functions;
char functions; char functions;
// iodevice_t device; // iodevice_t device;
int i; int i;
switch(state->pos) switch(state->pos)
@ -198,7 +198,7 @@ static void start_handler(void *data, const char *tagname, const char **attribut
{ {
// we are now examining a hash tag // we are now examining a hash tag
name = NULL; name = NULL;
// device = IO_COUNT; // device = IO_COUNT;
while(attributes[0]) while(attributes[0])
{ {
@ -231,7 +231,7 @@ static void start_handler(void *data, const char *tagname, const char **attribut
unknown_attribute_value(state, attributes[0], attributes[1]); unknown_attribute_value(state, attributes[0], attributes[1]);
else else
{ {
// device = (iodevice_t) i; // device = (iodevice_t) i;
} }
} }
else else

View File

@ -494,7 +494,7 @@ public:
private: private:
// internal state // internal state
input_code m_code[16]; input_code m_code[16];
}; };
@ -584,7 +584,7 @@ private:
// internal state // internal state
input_manager & m_manager; // reference to our manager input_manager & m_manager; // reference to our manager
input_device * m_device[DEVICE_INDEX_MAXIMUM]; // array of devices in this class input_device * m_device[DEVICE_INDEX_MAXIMUM]; // array of devices in this class
input_device_class m_devclass; // our device class input_device_class m_devclass; // our device class
int m_maxindex; // maximum populated index int m_maxindex; // maximum populated index
bool m_enabled; // is this class enabled? bool m_enabled; // is this class enabled?

View File

@ -148,9 +148,9 @@ static OPCODE_HANDLER( dmaop_block_move )
static OPCODE_HANDLER( dmaop_select ) static OPCODE_HANDLER( dmaop_select )
{ {
// UINT32 operand; // UINT32 operand;
// operand = FETCH(machine); // operand = FETCH(machine);
if (lsi810.scntl0 & 0x01) if (lsi810.scntl0 & 0x01)
{ {
@ -173,9 +173,9 @@ static OPCODE_HANDLER( dmaop_select )
static OPCODE_HANDLER( dmaop_wait_disconnect ) static OPCODE_HANDLER( dmaop_wait_disconnect )
{ {
// UINT32 operand; // UINT32 operand;
// operand = FETCH(machine); // operand = FETCH(machine);
if (lsi810.scntl0 & 0x01) if (lsi810.scntl0 & 0x01)
{ {
@ -193,7 +193,7 @@ static OPCODE_HANDLER( dmaop_wait_reselect )
{ {
// UINT32 operand; // UINT32 operand;
// operand = FETCH(machine); // operand = FETCH(machine);
if (lsi810.scntl0 & 0x01) if (lsi810.scntl0 & 0x01)
{ {
@ -209,9 +209,9 @@ static OPCODE_HANDLER( dmaop_wait_reselect )
static OPCODE_HANDLER( dmaop_set ) static OPCODE_HANDLER( dmaop_set )
{ {
// UINT32 operand; // UINT32 operand;
// operand = FETCH(machine); // operand = FETCH(machine);
/* initiator mode */ /* initiator mode */
if (lsi810.dcmd & 0x8) if (lsi810.dcmd & 0x8)
@ -238,9 +238,9 @@ static OPCODE_HANDLER( dmaop_set )
static OPCODE_HANDLER( dmaop_clear ) static OPCODE_HANDLER( dmaop_clear )
{ {
// UINT32 operand; // UINT32 operand;
// operand = FETCH(machine); // operand = FETCH(machine);
/* initiator mode */ /* initiator mode */
if (lsi810.dcmd & 0x8) if (lsi810.dcmd & 0x8)

View File

@ -388,7 +388,7 @@ READ16_DEVICE_HANDLER( smc91c9x_r )
WRITE16_DEVICE_HANDLER( smc91c9x_w ) WRITE16_DEVICE_HANDLER( smc91c9x_w )
{ {
smc91c9x_state *smc = get_safe_token(device); smc91c9x_state *smc = get_safe_token(device);
// UINT16 olddata; // UINT16 olddata;
/* determine the effective register */ /* determine the effective register */
offset %= 8; offset %= 8;
@ -396,7 +396,7 @@ WRITE16_DEVICE_HANDLER( smc91c9x_w )
offset += 8 * (smc->reg[EREG_BANK] & 7); offset += 8 * (smc->reg[EREG_BANK] & 7);
/* update the data generically */ /* update the data generically */
// olddata = smc->reg[offset]; // olddata = smc->reg[offset];
mem_mask &= smc->regmask[offset]; mem_mask &= smc->regmask[offset];
COMBINE_DATA(&smc->reg[offset]); COMBINE_DATA(&smc->reg[offset]);

View File

@ -3282,7 +3282,7 @@ void address_table::map_range(offs_t addrstart, offs_t addrend, offs_t addrmask,
// recompute any direct access on this space if it is a read modification // recompute any direct access on this space if it is a read modification
m_space.m_direct.force_update(entry); m_space.m_direct.force_update(entry);
// verify_reference_counts(); // verify_reference_counts();
} }
UINT8 address_table::get_free_handler() UINT8 address_table::get_free_handler()
@ -3418,7 +3418,7 @@ void address_table::setup_range(offs_t addrstart, offs_t addrend, offs_t addrmas
} }
} }
// verify_reference_counts(); // verify_reference_counts();
} }

View File

@ -1026,7 +1026,7 @@ void screen_device::finalize_burnin()
if (filerr == FILERR_NONE) if (filerr == FILERR_NONE)
{ {
png_info pnginfo = { 0 }; png_info pnginfo = { 0 };
// png_error pngerr; // png_error pngerr;
char text[256]; char text[256];
// add two text entries describing the image // add two text entries describing the image

View File

@ -133,7 +133,7 @@ static STREAM_UPDATE( rf5c400_update )
stream_sample_t *buf0 = outputs[0]; stream_sample_t *buf0 = outputs[0];
stream_sample_t *buf1 = outputs[1]; stream_sample_t *buf1 = outputs[1];
// start = ((channel->startH & 0xFF00) << 8) | channel->startL; // start = ((channel->startH & 0xFF00) << 8) | channel->startL;
end = ((channel->endHloopH & 0xFF) << 16) | channel->endL; end = ((channel->endHloopH & 0xFF) << 16) | channel->endL;
loop = ((channel->endHloopH & 0xFF00) << 8) | channel->loopL; loop = ((channel->endHloopH & 0xFF00) << 8) | channel->loopL;
pos = channel->pos; pos = channel->pos;

View File

@ -561,8 +561,8 @@ static void update_pcm(YMF271Chip *chip, int slotnum, INT32 *mixp, int length)
ch0_vol = ((UINT64)final_volume * (UINT64)channel_attenuation[slot->ch0_level]) >> 16; ch0_vol = ((UINT64)final_volume * (UINT64)channel_attenuation[slot->ch0_level]) >> 16;
ch1_vol = ((UINT64)final_volume * (UINT64)channel_attenuation[slot->ch1_level]) >> 16; ch1_vol = ((UINT64)final_volume * (UINT64)channel_attenuation[slot->ch1_level]) >> 16;
// ch2_vol = ((UINT64)final_volume * (UINT64)channel_attenuation[slot->ch2_level]) >> 16; // ch2_vol = ((UINT64)final_volume * (UINT64)channel_attenuation[slot->ch2_level]) >> 16;
// ch3_vol = ((UINT64)final_volume * (UINT64)channel_attenuation[slot->ch3_level]) >> 16; // ch3_vol = ((UINT64)final_volume * (UINT64)channel_attenuation[slot->ch3_level]) >> 16;
if (ch0_vol > 65536) ch0_vol = 65536; if (ch0_vol > 65536) ch0_vol = 65536;
if (ch1_vol > 65536) ch1_vol = 65536; if (ch1_vol > 65536) ch1_vol = 65536;

View File

@ -688,10 +688,10 @@ static void ptn( device_t *device, int opcode, int src_x, int src_y, INT16 _ax,
ax_neg = -1; ax_neg = -1;
else else
ax_neg = 1; ax_neg = 1;
/* if (ay < 0) /* if (ay < 0)
ay_neg = -1; ay_neg = -1;
else else
ay_neg = 1;*/ ay_neg = 1;*/
if (opcode & 0x0800) if (opcode & 0x0800)
switch (opcode & 0x0700) switch (opcode & 0x0700)

View File

@ -163,11 +163,11 @@ READ8_DEVICE_HANDLER( tlc34076_r )
WRITE8_DEVICE_HANDLER( tlc34076_w ) WRITE8_DEVICE_HANDLER( tlc34076_w )
{ {
tlc34076_state *state = get_safe_token(device); tlc34076_state *state = get_safe_token(device);
// UINT8 oldval; // UINT8 oldval;
/* keep in range */ /* keep in range */
offset &= 0x0f; offset &= 0x0f;
// oldval = state->regs[offset]; // oldval = state->regs[offset];
state->regs[offset] = data; state->regs[offset] = data;
/* switch off the offset */ /* switch off the offset */

View File

@ -2079,7 +2079,7 @@ INLINE UINT32 compute_raster_hash(const raster_info *info)
const UINT8 *dither4 = NULL; \ const UINT8 *dither4 = NULL; \
const UINT8 *dither = NULL \ const UINT8 *dither = NULL \
#define DECLARE_DITHER_POINTERS_NO_DITHER_VAR \ #define DECLARE_DITHER_POINTERS_NO_DITHER_VAR \
const UINT8 *dither_lookup = NULL; \ const UINT8 *dither_lookup = NULL; \
#define COMPUTE_DITHER_POINTERS(FBZMODE, YY) \ #define COMPUTE_DITHER_POINTERS(FBZMODE, YY) \

View File

@ -70,7 +70,7 @@ static casserr_t wavfile_process(cassette_image *cassette, struct CassetteOption
UINT16 format_type = 0; UINT16 format_type = 0;
UINT32 bytes_per_second = 0; UINT32 bytes_per_second = 0;
// UINT16 block_align = 0; // UINT16 block_align = 0;
int waveform_flags = 0; int waveform_flags = 0;
/* read header */ /* read header */
@ -108,7 +108,7 @@ static casserr_t wavfile_process(cassette_image *cassette, struct CassetteOption
opts->channels = get_leuint16(&format_tag[2]); opts->channels = get_leuint16(&format_tag[2]);
opts->sample_frequency = get_leuint32(&format_tag[4]); opts->sample_frequency = get_leuint32(&format_tag[4]);
bytes_per_second = get_leuint32(&format_tag[8]); bytes_per_second = get_leuint32(&format_tag[8]);
// block_align = get_leuint16(&format_tag[12]); // block_align = get_leuint16(&format_tag[12]);
opts->bits_per_sample = get_leuint16(&format_tag[14]); opts->bits_per_sample = get_leuint16(&format_tag[14]);
if (format_type != WAV_FORMAT_PCM) if (format_type != WAV_FORMAT_PCM)

View File

@ -310,7 +310,7 @@ static STREAM_UPDATE( beezer_stream_update )
/* skip if nothing enabled */ /* skip if nothing enabled */
if ((sh6840_timer[0].cr & 0x01) == 0) // if we're not in reset... if ((sh6840_timer[0].cr & 0x01) == 0) // if we're not in reset...
{ {
// int noise_clocks_this_sample = 0; // int noise_clocks_this_sample = 0;
UINT32 chan1_clocks; UINT32 chan1_clocks;
/* generate noise if configured to do so */ /* generate noise if configured to do so */

View File

@ -753,7 +753,7 @@ MACHINE_CONFIG_END
static void dcs_boot(running_machine &machine) static void dcs_boot(running_machine &machine)
{ {
UINT8 buffer[0x1000]; UINT8 buffer[0x1000];
// UINT32 max_banks; // UINT32 max_banks;
UINT16 *base; UINT16 *base;
int i; int i;
@ -763,7 +763,7 @@ static void dcs_boot(running_machine &machine)
case 1: case 1:
/* determine the base */ /* determine the base */
// max_banks = dcs.bootrom_words / 0x1000; // max_banks = dcs.bootrom_words / 0x1000;
base = dcs.bootrom + ((dcs.sounddata_bank * 0x1000) % dcs.bootrom_words); base = dcs.bootrom + ((dcs.sounddata_bank * 0x1000) % dcs.bootrom_words);
/* convert from 16-bit data to 8-bit data and boot */ /* convert from 16-bit data to 8-bit data and boot */

View File

@ -61,16 +61,16 @@ static WRITE16_HANDLER( f3_es5505_bank_w )
static WRITE16_HANDLER( f3_volume_w ) static WRITE16_HANDLER( f3_volume_w )
{ {
// static UINT16 channel[8],last_l,last_r; // static UINT16 channel[8],last_l,last_r;
// static int latch; // static int latch;
// if (offset==0) latch=(data>>8)&0x7; // if (offset==0) latch=(data>>8)&0x7;
// if (offset==1) channel[latch]=data>>8; // if (offset==1) channel[latch]=data>>8;
// if (channel[7]!=last_l) mixer_set_volume(0, (int)((float)channel[7]*1.58)); /* Left master volume */ // if (channel[7]!=last_l) mixer_set_volume(0, (int)((float)channel[7]*1.58)); /* Left master volume */
// if (channel[6]!=last_r) mixer_set_volume(1, (int)((float)channel[6]*1.58)); /* Right master volume */ // if (channel[6]!=last_r) mixer_set_volume(1, (int)((float)channel[6]*1.58)); /* Right master volume */
// last_l=channel[7]; // last_l=channel[7];
// last_r=channel[6]; // last_r=channel[6];
/* Channel 5 - Left Aux? Always set to volume, but never used for panning */ /* Channel 5 - Left Aux? Always set to volume, but never used for panning */
/* Channel 4 - Right Aux? Always set to volume, but never used for panning */ /* Channel 4 - Right Aux? Always set to volume, but never used for panning */

View File

@ -404,7 +404,7 @@ static MACHINE_CONFIG_START( 4roses, _4roses_state )
MCFG_PALETTE_INIT(funworld) MCFG_PALETTE_INIT(funworld)
MCFG_VIDEO_START(funworld) MCFG_VIDEO_START(funworld)
// MCFG_MC6845_ADD("crtc", MC6845, MASTER_CLOCK/8, mc6845_intf) /* 2MHz, guess */ // MCFG_MC6845_ADD("crtc", MC6845, MASTER_CLOCK/8, mc6845_intf) /* 2MHz, guess */
/* sound hardware */ /* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono") MCFG_SPEAKER_STANDARD_MONO("mono")

View File

@ -231,7 +231,7 @@ static WRITE8_HANDLER( doraemon_outputs_w )
memory_set_bank(space->machine(), "bank1", (data & 0x30) >> 4); memory_set_bank(space->machine(), "bank1", (data & 0x30) >> 4);
// popmessage("%02x", data); // popmessage("%02x", data);
} }
static ADDRESS_MAP_START( doraemon, AS_PROGRAM, 8 ) static ADDRESS_MAP_START( doraemon, AS_PROGRAM, 8 )
@ -363,9 +363,9 @@ static INPUT_PORTS_START( doraemon )
PORT_DIPSETTING( 0x06, "40 %" ) PORT_DIPSETTING( 0x06, "40 %" )
PORT_DIPSETTING( 0x05, "60 %" ) PORT_DIPSETTING( 0x05, "60 %" )
PORT_DIPSETTING( 0x04, "80 %" ) PORT_DIPSETTING( 0x04, "80 %" )
// PORT_DIPSETTING( 0x03, "100 %" ) // PORT_DIPSETTING( 0x03, "100 %" )
// PORT_DIPSETTING( 0x02, "100 %" ) // PORT_DIPSETTING( 0x02, "100 %" )
// PORT_DIPSETTING( 0x01, "100 %" ) // PORT_DIPSETTING( 0x01, "100 %" )
PORT_DIPSETTING( 0x00, "100 %" ) PORT_DIPSETTING( 0x00, "100 %" )
PORT_DIPNAME( 0x10, 0x10, "Games For 100 Yen" ) PORT_DIPNAME( 0x10, 0x10, "Games For 100 Yen" )
PORT_DIPSETTING( 0x10, "1" ) PORT_DIPSETTING( 0x10, "1" )

View File

@ -365,7 +365,7 @@ static void jamtable_disasm(running_machine &machine, address_space *space,UINT3
char sop1[16]; char sop1[16];
char sop2[16]; char sop2[16];
char pcrel[16]; char pcrel[16];
// int prefix; // int prefix;
addr=address; addr=address;
while (1) while (1)
@ -385,14 +385,14 @@ static void jamtable_disasm(running_machine &machine, address_space *space,UINT3
sprintf(sop2,"%08X",op2); sprintf(sop2,"%08X",op2);
sprintf(sop1,"ACC"); sprintf(sop1,"ACC");
sprintf(pcrel,"PC+ACC"); sprintf(pcrel,"PC+ACC");
// prefix=1; // prefix=1;
} }
else else
{ {
sprintf(sop2,"%08X",op2); sprintf(sop2,"%08X",op2);
sprintf(sop1,"%08X",op1); sprintf(sop1,"%08X",op1);
sprintf(pcrel,"%08X",base+9+op1); sprintf(pcrel,"%08X",base+9+op1);
// prefix=0; // prefix=0;
} }
debug_console_printf(machine,"%08X ",base); debug_console_printf(machine,"%08X ",base);
// dl=instr ebx=par1 eax=par2 // dl=instr ebx=par1 eax=par2

View File

@ -4240,15 +4240,15 @@ Marvel Vs. Capcom: Clash of Super Heroes (Euro 980123):
The originally dumped ROM4 contains garbage instructions that cause the game to crash during the ending staff roll. The originally dumped ROM4 contains garbage instructions that cause the game to crash during the ending staff roll.
The ROM has been repaired so that the code matches the other sets after decryption: The ROM has been repaired so that the code matches the other sets after decryption:
offset dumped repaired decrypted offset dumped repaired decrypted
0x40/2 001a 189a EB11 -> 4EF9 0x40/2 001a 189a EB11 -> 4EF9
0x60/2 800b c00b 0843 -> 227C 0x60/2 800b c00b 0843 -> 227C
*/ */
ROM_START( mvsc ) ROM_START( mvsc )
ROM_REGION( CODE_SIZE, "maincpu", 0 ) /* 68000 code */ ROM_REGION( CODE_SIZE, "maincpu", 0 ) /* 68000 code */
ROM_LOAD16_WORD_SWAP( "mvce.03a", 0x000000, 0x80000, CRC(824e4a90) SHA1(5c79c166d988d8a75d9941f4ee6fa4d6476e55e1) ) ROM_LOAD16_WORD_SWAP( "mvce.03a", 0x000000, 0x80000, CRC(824e4a90) SHA1(5c79c166d988d8a75d9941f4ee6fa4d6476e55e1) )
// ROM_LOAD16_WORD_SWAP( "mvce.04a", 0x080000, 0x80000, BAD_DUMP CRC(cac02153) SHA1(ee9f9da6fda53f21ba7b74367612c90281269690) ) // ROM_LOAD16_WORD_SWAP( "mvce.04a", 0x080000, 0x80000, BAD_DUMP CRC(cac02153) SHA1(ee9f9da6fda53f21ba7b74367612c90281269690) )
ROM_LOAD16_WORD_SWAP( "mvce.04a", 0x080000, 0x80000, CRC(436c5a4e) SHA1(82f4586e888f2550c53bfdc93a53791a595e05bd) ) ROM_LOAD16_WORD_SWAP( "mvce.04a", 0x080000, 0x80000, CRC(436c5a4e) SHA1(82f4586e888f2550c53bfdc93a53791a595e05bd) )
ROM_LOAD16_WORD_SWAP( "mvc.05a", 0x100000, 0x80000, CRC(2d8c8e86) SHA1(b07d640a734c5d336054ed05195786224c9a6cd4) ) ROM_LOAD16_WORD_SWAP( "mvc.05a", 0x100000, 0x80000, CRC(2d8c8e86) SHA1(b07d640a734c5d336054ed05195786224c9a6cd4) )
ROM_LOAD16_WORD_SWAP( "mvc.06a", 0x180000, 0x80000, CRC(8528e1f5) SHA1(cd065c05268ab581b05676da544baf6af642acac) ) ROM_LOAD16_WORD_SWAP( "mvc.06a", 0x180000, 0x80000, CRC(8528e1f5) SHA1(cd065c05268ab581b05676da544baf6af642acac) )

View File

@ -1076,9 +1076,9 @@ static SCREEN_UPDATE(cps3)
//int endline; //int endline;
//int height = (value3 & 0x7f000000)>>24; //int height = (value3 & 0x7f000000)>>24;
int uu; int uu;
// UINT32* tmapregs[4] = { state->m_tilemap20_regs_base, state->m_tilemap30_regs_base, state->m_tilemap40_regs_base, state->m_tilemap50_regs_base }; // UINT32* tmapregs[4] = { state->m_tilemap20_regs_base, state->m_tilemap30_regs_base, state->m_tilemap40_regs_base, state->m_tilemap50_regs_base };
// UINT32* regs; // UINT32* regs;
// regs = tmapregs[tilemapnum]; // regs = tmapregs[tilemapnum];
//endline = value2; //endline = value2;
//startline = endline - height; //startline = endline - height;

View File

@ -3,11 +3,11 @@
Note: this hardware is a copy of Psikyo's 68020 based hardware, Note: this hardware is a copy of Psikyo's 68020 based hardware,
the Strikers 1945 bootleg has the same unknown rom! the Strikers 1945 bootleg has the same unknown rom!
It isn't quite as flexible as the original Psikyo hardware It isn't quite as flexible as the original Psikyo hardware
by the looks of it, there are various subtle changes to how by the looks of it, there are various subtle changes to how
things work, for example the tilemap sizes and missing things work, for example the tilemap sizes and missing
transparent pen modification. This makes it rather hard to transparent pen modification. This makes it rather hard to
merge with psikyo.c and it should probably be left separate. merge with psikyo.c and it should probably be left separate.
Dream World Dream World
SemiCom, 2000 SemiCom, 2000
@ -93,25 +93,25 @@ Stephh's notes (based on the game M68EC020 code and some tests) :
Baryon has some annoying sound looping clicks / cutouts, these need to Baryon has some annoying sound looping clicks / cutouts, these need to
be verified against the HW (it's a very cheap sound system, so it might be verified against the HW (it's a very cheap sound system, so it might
be accurate) be accurate)
Baryon has playfield background which fade in with very rough / visible Baryon has playfield background which fade in with very rough / visible
edges. In this case the tilemap size registers from the original edges. In this case the tilemap size registers from the original
psikyo hardware are set to be the alternate tilemap size, however that psikyo hardware are set to be the alternate tilemap size, however that
doesn't make sense in the context of the data in RAM, which doesn't doesn't make sense in the context of the data in RAM, which doesn't
appear to wrap properly anyway, again, it's likely this is just how the appear to wrap properly anyway, again, it's likely this is just how the
game is. Furthermore the BG test in the test menu indicates that it game is. Furthermore the BG test in the test menu indicates that it
tests alternate tilemap sizes, but doesn't even write to the register, tests alternate tilemap sizes, but doesn't even write to the register,
probably a leftover from hardware development as the test menu is mostly probably a leftover from hardware development as the test menu is mostly
incomplete. incomplete.
All: sprite priority, the original psikyo.c HW has sprite<->tilemap All: sprite priority, the original psikyo.c HW has sprite<->tilemap
priority but we don't support it here, does the clone HW support it? priority but we don't support it here, does the clone HW support it?
All: sprite zooming, again the original psikyo.c HW supports this, but we All: sprite zooming, again the original psikyo.c HW supports this, but we
don't support it here. The Strikers 1945 bootleg in psikyo.c doesn't don't support it here. The Strikers 1945 bootleg in psikyo.c doesn't
appear to support it properly either, so it might be missing on these appear to support it properly either, so it might be missing on these
clone boards. clone boards.
*/ */
@ -283,7 +283,7 @@ SCREEN_EOF( dreamwld )
static SCREEN_UPDATE( dreamwld ) static SCREEN_UPDATE( dreamwld )
{ {
dreamwld_state *state = screen->machine().driver_data<dreamwld_state>(); dreamwld_state *state = screen->machine().driver_data<dreamwld_state>();
// int tm0size, tm1size; // int tm0size, tm1size;
tilemap_t *tmptilemap0, *tmptilemap1; tilemap_t *tmptilemap0, *tmptilemap1;

View File

@ -1161,8 +1161,8 @@ static void jamma_jvs_cmd_exec(running_machine &machine)
int rdata_ptr; int rdata_ptr;
int sum; int sum;
// sync = state->m_jvs_sdata[0]; // sync = state->m_jvs_sdata[0];
// node = state->m_jvs_sdata[1]; // node = state->m_jvs_sdata[1];
byte_num = state->m_jvs_sdata[2]; byte_num = state->m_jvs_sdata[2];
#if 0 #if 0

View File

@ -614,7 +614,7 @@ static ADDRESS_MAP_START( tms_program_map, AS_PROGRAM, 16 )
AM_RANGE(0x00000000, 0x003fffff) AM_MIRROR(0xf8000000) AM_RAM AM_BASE_MEMBER(jpmimpct_state, m_vram) AM_RANGE(0x00000000, 0x003fffff) AM_MIRROR(0xf8000000) AM_RAM AM_BASE_MEMBER(jpmimpct_state, m_vram)
AM_RANGE(0x00800000, 0x00ffffff) AM_MIRROR(0xf8000000) AM_ROM AM_REGION("user1", 0x100000) AM_RANGE(0x00800000, 0x00ffffff) AM_MIRROR(0xf8000000) AM_ROM AM_REGION("user1", 0x100000)
AM_RANGE(0x02000000, 0x027fffff) AM_MIRROR(0xf8000000) AM_ROM AM_REGION("user1", 0) AM_RANGE(0x02000000, 0x027fffff) AM_MIRROR(0xf8000000) AM_ROM AM_REGION("user1", 0)
// AM_RANGE(0x01000000, 0x0100003f) AM_MIRROR(0xf87fffc0) AM_READWRITE(jpmimpct_bt477_r, jpmimpct_bt477_w) // AM_RANGE(0x01000000, 0x0100003f) AM_MIRROR(0xf87fffc0) AM_READWRITE(jpmimpct_bt477_r, jpmimpct_bt477_w)
AM_RANGE(0x01000000, 0x017fffff) AM_MIRROR(0xf8000000) AM_MASK(0x1f) AM_READWRITE(jpmimpct_bt477_r, jpmimpct_bt477_w) AM_RANGE(0x01000000, 0x017fffff) AM_MIRROR(0xf8000000) AM_MASK(0x1f) AM_READWRITE(jpmimpct_bt477_r, jpmimpct_bt477_w)
AM_RANGE(0x07800000, 0x07bfffff) AM_MIRROR(0xf8400000) AM_RAM AM_RANGE(0x07800000, 0x07bfffff) AM_MIRROR(0xf8400000) AM_RAM
ADDRESS_MAP_END ADDRESS_MAP_END

View File

@ -343,7 +343,7 @@ static SCREEN_UPDATE( maygayv1 )
// printf("Blinking\n"); // printf("Blinking\n");
/* Resolution: either 4bpp or 2bpp */ /* Resolution: either 4bpp or 2bpp */
// res = (w0 >> 9) & 3; // res = (w0 >> 9) & 3;
/* Expand 2bpp to 3bpp */ /* Expand 2bpp to 3bpp */

View File

@ -273,13 +273,13 @@ SCREEN_UPDATE( test_vcu )
static SCREEN_UPDATE( mazerbla ) static SCREEN_UPDATE( mazerbla )
{ {
mazerbla_state *state = screen->machine().driver_data<mazerbla_state>(); mazerbla_state *state = screen->machine().driver_data<mazerbla_state>();
// UINT32 color_base = 0; // UINT32 color_base = 0;
if (state->m_game_id == MAZERBLA) if (state->m_game_id == MAZERBLA)
// color_base = 0x80; /* 0x80 constant: matches Mazer Blazer movie */ // color_base = 0x80; /* 0x80 constant: matches Mazer Blazer movie */
// if (state->m_game_id == GREATGUN) // if (state->m_game_id == GREATGUN)
// color_base = 0x00; // color_base = 0x00;
// bitmap_fill(bitmap, NULL, 0); // bitmap_fill(bitmap, NULL, 0);

View File

@ -219,8 +219,8 @@ TODO: - Distinguish door switches using manual
- Flo's move in Great Escape gives spin alarms - need a different opto setting for reverse spin reels? - Flo's move in Great Escape gives spin alarms - need a different opto setting for reverse spin reels?
- Fix BwB characteriser, need to be able to calculate stabiliser bytes. Anyone fancy reading 6809 source? - Fix BwB characteriser, need to be able to calculate stabiliser bytes. Anyone fancy reading 6809 source?
- Fix MSM6376 - We need all features of the chip, including dynamic sample rate adjustment and BEEP. - Fix MSM6376 - We need all features of the chip, including dynamic sample rate adjustment and BEEP.
- OKI sound chip rate - need to confirm independently (3MHz sounds good, but that could be because - OKI sound chip rate - need to confirm independently (3MHz sounds good, but that could be because
of the old driver - BwB manual claims 64KHz to 128KHz). of the old driver - BwB manual claims 64KHz to 128KHz).
***********************************************************************************************************/ ***********************************************************************************************************/
#include "emu.h" #include "emu.h"
#include "machine/6821pia.h" #include "machine/6821pia.h"

View File

@ -1361,7 +1361,7 @@ static MACHINE_CONFIG_DERIVED( newhilop, noraut_base )
/* basic machine hardware */ /* basic machine hardware */
MCFG_CPU_MODIFY("maincpu") MCFG_CPU_MODIFY("maincpu")
MCFG_CPU_PROGRAM_MAP(newhilop_map) MCFG_CPU_PROGRAM_MAP(newhilop_map)
// MCFG_CPU_IO_MAP(newhilop_portmap) // MCFG_CPU_IO_MAP(newhilop_portmap)
MCFG_CPU_VBLANK_INT("screen", irq0_line_hold) MCFG_CPU_VBLANK_INT("screen", irq0_line_hold)
MACHINE_CONFIG_END MACHINE_CONFIG_END

View File

@ -269,7 +269,7 @@ static SCREEN_UPDATE( pinkiri8 )
x &= 0xff; x &= 0xff;
x *= 2; x *= 2;
// unk2 = state->m_janshi_vram2[(i*2)+1]; // unk2 = state->m_janshi_vram2[(i*2)+1];
y = (state->m_janshi_vram2[(i*2)+0]); y = (state->m_janshi_vram2[(i*2)+0]);
y = 0x100-y; y = 0x100-y;

View File

@ -3,7 +3,7 @@ Reality Tennis - (c) 1993 TCH
driver by Tomasz Slanina driver by Tomasz Slanina
based on informations provided by Antonio 'Peluko' Carrillo based on informations provided by Antonio 'Peluko' Carrillo
Game Credits: Game Credits:
Antonio 'Peluko' Carrillo: programmer and game designer Antonio 'Peluko' Carrillo: programmer and game designer
@ -97,7 +97,7 @@ static ADDRESS_MAP_START( rltennis_main, AS_PROGRAM, 16 )
AM_RANGE(0x720006, 0x720007) AM_WRITE(rlt_ramdac_address_rm_w) AM_RANGE(0x720006, 0x720007) AM_WRITE(rlt_ramdac_address_rm_w)
AM_RANGE(0x740000, 0x740001) AM_WRITE(rlt_snd1_w) AM_RANGE(0x740000, 0x740001) AM_WRITE(rlt_snd1_w)
AM_RANGE(0x760000, 0x760001) AM_WRITE(rlt_snd2_w) AM_RANGE(0x760000, 0x760001) AM_WRITE(rlt_snd2_w)
AM_RANGE(0x780000, 0x780001) AM_WRITENOP /* sound control, unknown, usually = 0x0044 */ AM_RANGE(0x780000, 0x780001) AM_WRITENOP /* sound control, unknown, usually = 0x0044 */
AM_RANGE(0x7a0000, 0x7a0003) AM_READNOP /* unknown, read only at boot time*/ AM_RANGE(0x7a0000, 0x7a0003) AM_READNOP /* unknown, read only at boot time*/
AM_RANGE(0x7e0000, 0x7e0001) AM_READ(rlt_io_r) AM_RANGE(0x7e0000, 0x7e0001) AM_READ(rlt_io_r)
AM_RANGE(0x7e0002, 0x7e0003) AM_READ_PORT("P2") AM_RANGE(0x7e0002, 0x7e0003) AM_READ_PORT("P2")

View File

@ -731,20 +731,20 @@ static READ8_HANDLER( saturn_SMPC_r8 )
if (offset == 0x75)//PDR1 read if (offset == 0x75)//PDR1 read
{ {
/* /*
PORT_START("JOY1") PORT_START("JOY1")
PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_START ) PORT_PLAYER(1) // START PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_START ) PORT_PLAYER(1) // START
PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("P1 A") PORT_PLAYER(1) // A PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("P1 A") PORT_PLAYER(1) // A
PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P1 B") PORT_PLAYER(1) // B PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P1 B") PORT_PLAYER(1) // B
PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("P1 C") PORT_PLAYER(1) // C PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("P1 C") PORT_PLAYER(1) // C
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_NAME("P1 R") PORT_PLAYER(1) // R PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_NAME("P1 R") PORT_PLAYER(1) // R
PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("P1 X") PORT_PLAYER(1) // X PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("P1 X") PORT_PLAYER(1) // X
PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("P1 Y") PORT_PLAYER(1) // Y PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("P1 Y") PORT_PLAYER(1) // Y
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("P1 Z") PORT_PLAYER(1) // Z PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("P1 Z") PORT_PLAYER(1) // Z
PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("P1 L") PORT_PLAYER(1) // L PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("P1 L") PORT_PLAYER(1) // L
*/ */
if (state->m_smpc.IOSEL1) if (state->m_smpc.IOSEL1)
{ {
@ -1741,12 +1741,12 @@ static ADDRESS_MAP_START( saturn_mem, AS_PROGRAM, 32 )
AM_RANGE(0x00100000, 0x0010007f) AM_READWRITE8(saturn_SMPC_r8, saturn_SMPC_w8,0xffffffff) AM_RANGE(0x00100000, 0x0010007f) AM_READWRITE8(saturn_SMPC_r8, saturn_SMPC_w8,0xffffffff)
AM_RANGE(0x00180000, 0x0018ffff) AM_READWRITE(saturn_backupram_r, saturn_backupram_w) AM_SHARE("share1") AM_BASE_MEMBER(saturn_state,m_backupram) AM_RANGE(0x00180000, 0x0018ffff) AM_READWRITE(saturn_backupram_r, saturn_backupram_w) AM_SHARE("share1") AM_BASE_MEMBER(saturn_state,m_backupram)
AM_RANGE(0x00200000, 0x002fffff) AM_RAM AM_MIRROR(0x100000) AM_SHARE("share2") AM_BASE_MEMBER(saturn_state,m_workram_l) AM_RANGE(0x00200000, 0x002fffff) AM_RAM AM_MIRROR(0x100000) AM_SHARE("share2") AM_BASE_MEMBER(saturn_state,m_workram_l)
// AM_RANGE(0x01000000, 0x01000003) AM_MIRROR(0x7ffffc) AM_WRITE(minit_w) // AM_RANGE(0x01000000, 0x01000003) AM_MIRROR(0x7ffffc) AM_WRITE(minit_w)
AM_RANGE(0x01000000, 0x017fffff) AM_WRITE(minit_w) AM_RANGE(0x01000000, 0x017fffff) AM_WRITE(minit_w)
// AM_RANGE(0x01800000, 0x01800003) AM_MIRROR(0x7ffffc) AM_WRITE(sinit_w) // AM_RANGE(0x01800000, 0x01800003) AM_MIRROR(0x7ffffc) AM_WRITE(sinit_w)
AM_RANGE(0x01800000, 0x01ffffff) AM_WRITE(sinit_w) AM_RANGE(0x01800000, 0x01ffffff) AM_WRITE(sinit_w)
AM_RANGE(0x02000000, 0x023fffff) AM_ROM AM_SHARE("share7") AM_REGION("maincpu", 0x80000) // cartridge space AM_RANGE(0x02000000, 0x023fffff) AM_ROM AM_SHARE("share7") AM_REGION("maincpu", 0x80000) // cartridge space
// AM_RANGE(0x02400000, 0x027fffff) AM_RAM //cart RAM area, dynamically allocated // AM_RANGE(0x02400000, 0x027fffff) AM_RAM //cart RAM area, dynamically allocated
AM_RANGE(0x04fffffc, 0x04ffffff) AM_READ8(saturn_cart_type_r,0x000000ff) AM_RANGE(0x04fffffc, 0x04ffffff) AM_READ8(saturn_cart_type_r,0x000000ff)
AM_RANGE(0x05800000, 0x0589ffff) AM_READWRITE(stvcd_r, stvcd_w) AM_RANGE(0x05800000, 0x0589ffff) AM_READWRITE(stvcd_r, stvcd_w)
/* Sound */ /* Sound */
@ -1771,9 +1771,9 @@ static ADDRESS_MAP_START( stv_mem, AS_PROGRAM, 32 )
AM_RANGE(0x00180000, 0x0018ffff) AM_READWRITE(saturn_backupram_r,saturn_backupram_w) AM_SHARE("share1") AM_BASE_MEMBER(saturn_state,m_backupram) AM_RANGE(0x00180000, 0x0018ffff) AM_READWRITE(saturn_backupram_r,saturn_backupram_w) AM_SHARE("share1") AM_BASE_MEMBER(saturn_state,m_backupram)
AM_RANGE(0x00200000, 0x002fffff) AM_RAM AM_MIRROR(0x100000) AM_SHARE("share2") AM_BASE_MEMBER(saturn_state,m_workram_l) AM_RANGE(0x00200000, 0x002fffff) AM_RAM AM_MIRROR(0x100000) AM_SHARE("share2") AM_BASE_MEMBER(saturn_state,m_workram_l)
AM_RANGE(0x00400000, 0x0040001f) AM_READWRITE(stv_io_r32, stv_io_w32) AM_BASE_MEMBER(saturn_state,m_ioga) AM_SHARE("share4") AM_MIRROR(0x20) AM_RANGE(0x00400000, 0x0040001f) AM_READWRITE(stv_io_r32, stv_io_w32) AM_BASE_MEMBER(saturn_state,m_ioga) AM_SHARE("share4") AM_MIRROR(0x20)
// AM_RANGE(0x01000000, 0x01000003) AM_MIRROR(0x7ffffc) AM_WRITE(minit_w) // AM_RANGE(0x01000000, 0x01000003) AM_MIRROR(0x7ffffc) AM_WRITE(minit_w)
AM_RANGE(0x01000000, 0x017fffff) AM_WRITE(minit_w) AM_RANGE(0x01000000, 0x017fffff) AM_WRITE(minit_w)
// AM_RANGE(0x01800000, 0x01800003) AM_MIRROR(0x7ffffc) AM_WRITE(sinit_w) // AM_RANGE(0x01800000, 0x01800003) AM_MIRROR(0x7ffffc) AM_WRITE(sinit_w)
AM_RANGE(0x01800000, 0x01ffffff) AM_WRITE(sinit_w) AM_RANGE(0x01800000, 0x01ffffff) AM_WRITE(sinit_w)
AM_RANGE(0x02000000, 0x04ffffff) AM_ROM AM_SHARE("share7") AM_REGION("abus", 0) // cartridge AM_RANGE(0x02000000, 0x04ffffff) AM_ROM AM_SHARE("share7") AM_REGION("abus", 0) // cartridge
AM_RANGE(0x05800000, 0x0589ffff) AM_READWRITE(stvcd_r, stvcd_w) AM_RANGE(0x05800000, 0x0589ffff) AM_READWRITE(stvcd_r, stvcd_w)
@ -2676,7 +2676,7 @@ static MACHINE_RESET( saturn )
if(state->m_cart_type == 1) if(state->m_cart_type == 1)
{ {
// AM_RANGE(0x02400000, 0x027fffff) AM_RAM //cart RAM area, dynamically allocated // AM_RANGE(0x02400000, 0x027fffff) AM_RAM //cart RAM area, dynamically allocated
machine.device("maincpu")->memory().space(AS_PROGRAM)->install_legacy_readwrite_handler(0x02400000, 0x0247ffff, FUNC(saturn_cart_dram0_r), FUNC(saturn_cart_dram0_w)); machine.device("maincpu")->memory().space(AS_PROGRAM)->install_legacy_readwrite_handler(0x02400000, 0x0247ffff, FUNC(saturn_cart_dram0_r), FUNC(saturn_cart_dram0_w));
machine.device("slave")->memory().space(AS_PROGRAM)->install_legacy_readwrite_handler(0x02400000, 0x0247ffff, FUNC(saturn_cart_dram0_r), FUNC(saturn_cart_dram0_w)); machine.device("slave")->memory().space(AS_PROGRAM)->install_legacy_readwrite_handler(0x02400000, 0x0247ffff, FUNC(saturn_cart_dram0_r), FUNC(saturn_cart_dram0_w));
machine.device("maincpu")->memory().space(AS_PROGRAM)->install_legacy_readwrite_handler(0x02600000, 0x0267ffff, FUNC(saturn_cart_dram1_r), FUNC(saturn_cart_dram1_w)); machine.device("maincpu")->memory().space(AS_PROGRAM)->install_legacy_readwrite_handler(0x02600000, 0x0267ffff, FUNC(saturn_cart_dram1_r), FUNC(saturn_cart_dram1_w));
@ -2685,7 +2685,7 @@ static MACHINE_RESET( saturn )
if(state->m_cart_type == 2) if(state->m_cart_type == 2)
{ {
// AM_RANGE(0x02400000, 0x027fffff) AM_RAM //cart RAM area, dynamically allocated // AM_RANGE(0x02400000, 0x027fffff) AM_RAM //cart RAM area, dynamically allocated
machine.device("maincpu")->memory().space(AS_PROGRAM)->install_legacy_readwrite_handler(0x02400000, 0x025fffff, FUNC(saturn_cart_dram0_r), FUNC(saturn_cart_dram0_w)); machine.device("maincpu")->memory().space(AS_PROGRAM)->install_legacy_readwrite_handler(0x02400000, 0x025fffff, FUNC(saturn_cart_dram0_r), FUNC(saturn_cart_dram0_w));
machine.device("slave")->memory().space(AS_PROGRAM)->install_legacy_readwrite_handler(0x02400000, 0x025fffff, FUNC(saturn_cart_dram0_r), FUNC(saturn_cart_dram0_w)); machine.device("slave")->memory().space(AS_PROGRAM)->install_legacy_readwrite_handler(0x02400000, 0x025fffff, FUNC(saturn_cart_dram0_r), FUNC(saturn_cart_dram0_w));
machine.device("maincpu")->memory().space(AS_PROGRAM)->install_legacy_readwrite_handler(0x02600000, 0x027fffff, FUNC(saturn_cart_dram1_r), FUNC(saturn_cart_dram1_w)); machine.device("maincpu")->memory().space(AS_PROGRAM)->install_legacy_readwrite_handler(0x02600000, 0x027fffff, FUNC(saturn_cart_dram1_r), FUNC(saturn_cart_dram1_w));

View File

@ -356,11 +356,11 @@ static WRITE16_HANDLER( io_chip_w )
{ {
segac2_state *state = space->machine().driver_data<segac2_state>(); segac2_state *state = space->machine().driver_data<segac2_state>();
UINT8 newbank; UINT8 newbank;
// UINT8 old; // UINT8 old;
/* generic implementation */ /* generic implementation */
offset &= 0x1f/2; offset &= 0x1f/2;
// old = state->m_misc_io_data[offset]; // old = state->m_misc_io_data[offset];
state->m_misc_io_data[offset] = data; state->m_misc_io_data[offset] = data;
switch (offset) switch (offset)

View File

@ -642,7 +642,7 @@ static UINT16 common_io_chip_r(address_space *space, int which, offs_t offset, U
static void common_io_chip_w(address_space *space, int which, offs_t offset, UINT16 data, UINT16 mem_mask) static void common_io_chip_w(address_space *space, int which, offs_t offset, UINT16 data, UINT16 mem_mask)
{ {
segas32_state *state = space->machine().driver_data<segas32_state>(); segas32_state *state = space->machine().driver_data<segas32_state>();
// UINT8 old; // UINT8 old;
/* only LSB matters */ /* only LSB matters */
if (!ACCESSING_BITS_0_7) if (!ACCESSING_BITS_0_7)
@ -650,7 +650,7 @@ static void common_io_chip_w(address_space *space, int which, offs_t offset, UIN
/* generic implementation */ /* generic implementation */
offset &= 0x1f/2; offset &= 0x1f/2;
// old = state->m_misc_io_data[which][offset]; // old = state->m_misc_io_data[which][offset];
state->m_misc_io_data[which][offset] = data; state->m_misc_io_data[which][offset] = data;
switch (offset) switch (offset)

View File

@ -191,14 +191,14 @@ An additional control PCB is used for Mocap Golf for the golf club sensor. It co
Driver by Ville Linde Driver by Ville Linde
DASM code snippets: DASM code snippets:
00FE0B8C: addi r31,r3,0x0000 00FE0B8C: addi r31,r3,0x0000
00FE0B90: lwz r3,0x0040(r1) 00FE0B90: lwz r3,0x0040(r1)
00FE0B94: cmpi r31,0x0000 ;offending check, understand where r3 comes from! 00FE0B94: cmpi r31,0x0000 ;offending check, understand where r3 comes from!
00FE0B98: lwz r4,0x0044(r1) 00FE0B98: lwz r4,0x0044(r1)
00FE0B9C: addic r5,r1,0x0058 00FE0B9C: addic r5,r1,0x0058
00FE0BA0: bne 0x00FE0C00 00FE0BA0: bne 0x00FE0C00
*/ */

View File

@ -675,13 +675,13 @@ static WRITE8_HANDLER( hotchase_sound_control_w )
{ {
device_t *sound[3]; device_t *sound[3];
// int reg[8]; // int reg[8];
sound[0] = space->machine().device("konami1"); sound[0] = space->machine().device("konami1");
sound[1] = space->machine().device("konami2"); sound[1] = space->machine().device("konami2");
sound[2] = space->machine().device("konami3"); sound[2] = space->machine().device("konami3");
// reg[offset] = data; // reg[offset] = data;
switch (offset) switch (offset)
{ {

View File

@ -1004,7 +1004,7 @@ WRITE32_HANDLER(archimedes_memc_page_w)
{ {
UINT32 log, phys, memc; UINT32 log, phys, memc;
// perms = (data & 0x300)>>8; // perms = (data & 0x300)>>8;
log = phys = memc = 0; log = phys = memc = 0;
switch (memc_pagesize) switch (memc_pagesize)

View File

@ -779,7 +779,7 @@ void cdicdic_device::process_delayed_command()
UINT32 next_msf = increment_cdda_frame_bcd((m_time & 0xffff7f00) >> 8); UINT32 next_msf = increment_cdda_frame_bcd((m_time & 0xffff7f00) >> 8);
UINT32 rounded_next_msf = increment_cdda_sector_bcd((m_time & 0xffff0000) >> 8); UINT32 rounded_next_msf = increment_cdda_sector_bcd((m_time & 0xffff0000) >> 8);
UINT32 lba = 0; UINT32 lba = 0;
// UINT32 next_lba = 0; // UINT32 next_lba = 0;
UINT8 nybbles[6] = UINT8 nybbles[6] =
{ {
msf & 0x0000000f, msf & 0x0000000f,
@ -789,15 +789,15 @@ void cdicdic_device::process_delayed_command()
(msf & 0x000f0000) >> 16, (msf & 0x000f0000) >> 16,
(msf & 0x00f00000) >> 20 (msf & 0x00f00000) >> 20
}; };
/* UINT8 next_nybbles[6] = /* UINT8 next_nybbles[6] =
{ {
rounded_next_msf & 0x0000000f, rounded_next_msf & 0x0000000f,
(rounded_next_msf & 0x000000f0) >> 4, (rounded_next_msf & 0x000000f0) >> 4,
(rounded_next_msf & 0x00000f00) >> 8, (rounded_next_msf & 0x00000f00) >> 8,
(rounded_next_msf & 0x0000f000) >> 12, (rounded_next_msf & 0x0000f000) >> 12,
(rounded_next_msf & 0x000f0000) >> 16, (rounded_next_msf & 0x000f0000) >> 16,
(rounded_next_msf & 0x00f00000) >> 20 (rounded_next_msf & 0x00f00000) >> 20
};*/ };*/
lba = nybbles[0] + nybbles[1]*10 + ((nybbles[2] + nybbles[3]*10)*75) + ((nybbles[4] + nybbles[5]*10)*75*60); lba = nybbles[0] + nybbles[1]*10 + ((nybbles[2] + nybbles[3]*10)*75) + ((nybbles[4] + nybbles[5]*10)*75*60);
@ -808,7 +808,7 @@ void cdicdic_device::process_delayed_command()
if(!(msf & 0x0000ff)) if(!(msf & 0x0000ff))
{ {
// next_lba = next_nybbles[0] + next_nybbles[1]*10 + ((next_nybbles[2] + next_nybbles[3]*10)*75) + ((next_nybbles[4] + next_nybbles[5]*10)*75*60); // next_lba = next_nybbles[0] + next_nybbles[1]*10 + ((next_nybbles[2] + next_nybbles[3]*10)*75) + ((next_nybbles[4] + next_nybbles[5]*10)*75*60);
verboselog(machine(), 0, "Playing CDDA sector from MSF location %06x\n", m_time | 2 ); verboselog(machine(), 0, "Playing CDDA sector from MSF location %06x\n", m_time | 2 );
cdda_start_audio(machine().device("cdda"), lba, rounded_next_msf); cdda_start_audio(machine().device("cdda"), lba, rounded_next_msf);

View File

@ -7536,12 +7536,12 @@ static void genesis_render_videoline_to_videobuffer(int scanline)
UINT16 hsize = 64; UINT16 hsize = 64;
UINT16 vsize = 64; UINT16 vsize = 64;
UINT16 window_right; UINT16 window_right;
// UINT16 window_hpos; // UINT16 window_hpos;
UINT16 window_down; UINT16 window_down;
// UINT16 window_vpos; // UINT16 window_vpos;
UINT16 hscroll_base; UINT16 hscroll_base;
// UINT8 vscroll_mode; // UINT8 vscroll_mode;
// UINT8 hscroll_mode; // UINT8 hscroll_mode;
int window_firstline; int window_firstline;
int window_lastline; int window_lastline;
int window_firstcol; int window_firstcol;
@ -7586,9 +7586,9 @@ static void genesis_render_videoline_to_videobuffer(int scanline)
base_b = MEGADRIVE_REG04_PATTERN_ADDR_B << 13; base_b = MEGADRIVE_REG04_PATTERN_ADDR_B << 13;
size = MEGADRIVE_REG10_HSCROLL_SIZE | (MEGADRIVE_REG10_VSCROLL_SIZE<<4); size = MEGADRIVE_REG10_HSCROLL_SIZE | (MEGADRIVE_REG10_VSCROLL_SIZE<<4);
window_right = MEGADRIVE_REG11_WINDOW_RIGHT; window_right = MEGADRIVE_REG11_WINDOW_RIGHT;
// window_hpos = MEGADRIVE_REG11_WINDOW_HPOS; // window_hpos = MEGADRIVE_REG11_WINDOW_HPOS;
window_down = MEGADRIVE_REG12_WINDOW_DOWN; window_down = MEGADRIVE_REG12_WINDOW_DOWN;
// window_vpos = MEGADRIVE_REG12_WINDOW_VPOS; // window_vpos = MEGADRIVE_REG12_WINDOW_VPOS;
screenwidth = MEGADRIVE_REG0C_RS0 | (MEGADRIVE_REG0C_RS1 << 1); screenwidth = MEGADRIVE_REG0C_RS0 | (MEGADRIVE_REG0C_RS1 << 1);
@ -9487,10 +9487,10 @@ int megadrive_z80irq_hpos = 320;
if (0) if (0)
{ {
//int xxx; //int xxx;
// UINT64 frametime; // UINT64 frametime;
// /* reference */ // /* reference */
// frametime = ATTOSECONDS_PER_SECOND/megadriv_framerate; // frametime = ATTOSECONDS_PER_SECOND/megadriv_framerate;
//time_elapsed_since_crap = frame_timer->time_elapsed(); //time_elapsed_since_crap = frame_timer->time_elapsed();
//xxx = machine.device<cpudevice>("maincpu")->attotime_to_cycles(time_elapsed_since_crap); //xxx = machine.device<cpudevice>("maincpu")->attotime_to_cycles(time_elapsed_since_crap);

View File

@ -1059,7 +1059,7 @@ static TGP_FUNCTION( track_lookup )
dist = -1; dist = -1;
// behaviour = 0; // behaviour = 0;
height = 0.0; height = 0.0;
entry = 0; entry = 0;
@ -1080,7 +1080,7 @@ static TGP_FUNCTION( track_lookup )
float d = (a-z)*(a-z); float d = (a-z)*(a-z);
if(dist == -1 || d<dist) { if(dist == -1 || d<dist) {
dist = d; dist = d;
// behaviour = tgp_data[posd+15]; // behaviour = tgp_data[posd+15];
height = z; height = z;
entry = bpos+i; entry = bpos+i;
} }

View File

@ -1654,7 +1654,7 @@ static int pif_channel_handle_command(running_machine &machine, int channel, int
mame_printf_debug("\n");*/ mame_printf_debug("\n");*/
address = (sdata[1] << 8) | (sdata[2]); address = (sdata[1] << 8) | (sdata[2]);
// checksum = address & 0x1f; // checksum = address & 0x1f;
address &= ~0x1f; address &= ~0x1f;
if (address == 0x400) if (address == 0x400)
@ -1691,7 +1691,7 @@ static int pif_channel_handle_command(running_machine &machine, int channel, int
mame_printf_debug("\n");*/ mame_printf_debug("\n");*/
address = (sdata[1] << 8) | (sdata[2]); address = (sdata[1] << 8) | (sdata[2]);
// checksum = address & 0x1f; // checksum = address & 0x1f;
address &= ~0x1f; address &= ~0x1f;
if (address == 0x8000) if (address == 0x8000)

View File

@ -1223,7 +1223,7 @@ WRITE64_DEVICE_HANDLER( naomibd_w )
static void load_rom_gdrom(running_machine& machine, naomibd_state *v) static void load_rom_gdrom(running_machine& machine, naomibd_state *v)
{ {
// UINT32 result; // UINT32 result;
cdrom_file *gdromfile; cdrom_file *gdromfile;
UINT8 buffer[2048]; UINT8 buffer[2048];
UINT8 *ptr; UINT8 *ptr;

View File

@ -2416,14 +2416,14 @@ static WRITE16_HANDLER( generic_cop_w )
{ {
UINT8 offs; UINT8 offs;
int div; int div;
// INT16 offs_val; // INT16 offs_val;
//printf("%08x %08x %08x %08x %08x %08x %08x\n",cop_register[0],cop_register[1],cop_register[2],cop_register[3],cop_register[4],cop_register[5],cop_register[6]); //printf("%08x %08x %08x %08x %08x %08x %08x\n",cop_register[0],cop_register[1],cop_register[2],cop_register[3],cop_register[4],cop_register[5],cop_register[6]);
offs = (offset & 3) * 4; offs = (offset & 3) * 4;
div = space->read_word(cop_register[4] + offs) + 1; div = space->read_word(cop_register[4] + offs) + 1;
// offs_val = space->read_word(cop_register[3] + offs); // offs_val = space->read_word(cop_register[3] + offs);
//420 / 180 = 500 : 400 = 30 / 50 = 98 / 18 //420 / 180 = 500 : 400 = 30 / 50 = 98 / 18
if(div == 0) { div = 1; } if(div == 0) { div = 1; }

View File

@ -577,7 +577,7 @@ static void cd_writeWord(running_machine &machine, UINT32 addr, UINT16 data)
// CDROM_LOG(("WW CR4: %04x\n", data)) // CDROM_LOG(("WW CR4: %04x\n", data))
cr4 = data; cr4 = data;
if(cr1 != 0 && 0) if(cr1 != 0 && 0)
printf("CD: command exec %02x %02x %02x %02x %02x (stat %04x)\n", hirqreg, cr1, cr2, cr3, cr4, cd_stat); printf("CD: command exec %02x %02x %02x %02x %02x (stat %04x)\n", hirqreg, cr1, cr2, cr3, cr4, cd_stat);
if (!cdrom) if (!cdrom)
{ {
@ -1891,7 +1891,7 @@ static void cd_playdata(void)
{ {
if (fadstoplay) if (fadstoplay)
{ {
logerror("STVCD: Reading FAD %d\n", cd_curfad); logerror("STVCD: Reading FAD %d\n", cd_curfad);
if (cdrom) if (cdrom)
{ {

View File

@ -683,7 +683,7 @@ void amiga_render_scanline(running_machine &machine, bitmap_t *bitmap, int scanl
hires = CUSTOM_REG(REG_BPLCON0) & BPLCON0_HIRES; hires = CUSTOM_REG(REG_BPLCON0) & BPLCON0_HIRES;
ham = CUSTOM_REG(REG_BPLCON0) & BPLCON0_HOMOD; ham = CUSTOM_REG(REG_BPLCON0) & BPLCON0_HOMOD;
dualpf = CUSTOM_REG(REG_BPLCON0) & BPLCON0_DBLPF; dualpf = CUSTOM_REG(REG_BPLCON0) & BPLCON0_DBLPF;
// lace = CUSTOM_REG(REG_BPLCON0) & BPLCON0_LACE; // lace = CUSTOM_REG(REG_BPLCON0) & BPLCON0_LACE;
/* compute the pixel fetch parameters */ /* compute the pixel fetch parameters */
ddf_start_pixel = ( CUSTOM_REG(REG_DDFSTRT) & 0xfc ) * 2 + (hires ? 9 : 17); ddf_start_pixel = ( CUSTOM_REG(REG_DDFSTRT) & 0xfc ) * 2 + (hires ? 9 : 17);

View File

@ -512,7 +512,7 @@ void amiga_aga_render_scanline(running_machine &machine, bitmap_t *bitmap, int s
hires = CUSTOM_REG(REG_BPLCON0) & BPLCON0_HIRES; hires = CUSTOM_REG(REG_BPLCON0) & BPLCON0_HIRES;
ham = CUSTOM_REG(REG_BPLCON0) & BPLCON0_HOMOD; ham = CUSTOM_REG(REG_BPLCON0) & BPLCON0_HOMOD;
dualpf = CUSTOM_REG(REG_BPLCON0) & BPLCON0_DBLPF; dualpf = CUSTOM_REG(REG_BPLCON0) & BPLCON0_DBLPF;
// lace = CUSTOM_REG(REG_BPLCON0) & BPLCON0_LACE; // lace = CUSTOM_REG(REG_BPLCON0) & BPLCON0_LACE;
/* get default bitoffset */ /* get default bitoffset */
switch(CUSTOM_REG(REG_FMODE) & 0x3) switch(CUSTOM_REG(REG_FMODE) & 0x3)

View File

@ -1632,12 +1632,12 @@ WRITE64_HANDLER( ta_fifo_poly_w )
WRITE64_HANDLER( ta_fifo_yuv_w ) WRITE64_HANDLER( ta_fifo_yuv_w )
{ {
// int reg; // int reg;
// UINT64 shift; // UINT64 shift;
// UINT32 dat; // UINT32 dat;
// reg = decode_reg_64(offset, mem_mask, &shift); // reg = decode_reg_64(offset, mem_mask, &shift);
// dat = (UINT32)(data >> shift); // dat = (UINT32)(data >> shift);
// printf("YUV FIFO: [%08x=%x] write %" I64FMT "x to %x, mask %" I64FMT "x %08x\n", 0x10800000+reg*4, dat, data, offset, mem_mask,test); // printf("YUV FIFO: [%08x=%x] write %" I64FMT "x to %x, mask %" I64FMT "x %08x\n", 0x10800000+reg*4, dat, data, offset, mem_mask,test);
} }

View File

@ -387,12 +387,12 @@ static void recalc_m3(void)
WRITE8_HANDLER( atari_gtia_w ) WRITE8_HANDLER( atari_gtia_w )
{ {
/* used for mixing hue/lum of different colors */ /* used for mixing hue/lum of different colors */
// static UINT8 lumpm0=0,lumpm1=0,lumpm2=0,lumpm3=0,lumpm4=0; // static UINT8 lumpm0=0,lumpm1=0,lumpm2=0,lumpm3=0,lumpm4=0;
static UINT8 lumpf1=0; static UINT8 lumpf1=0;
// static UINT8 lumpf2=0; // static UINT8 lumpf2=0;
// static UINT8 lumbk= 0; // static UINT8 lumbk= 0;
static UINT8 huepm0=0,huepm1=0,huepm2=0,huepm3=0,huepm4=0; static UINT8 huepm0=0,huepm1=0,huepm2=0,huepm3=0,huepm4=0;
// static UINT8 huepf1=0; // static UINT8 huepf1=0;
static UINT8 huepf2=0,huebk= 0; static UINT8 huepf2=0,huebk= 0;
switch (offset & 31) switch (offset & 31)

View File

@ -510,8 +510,8 @@ INLINE void zdrawgfxzoom32GP(
// adjust insertion points and pre-entry constants // adjust insertion points and pre-entry constants
eax = (dst_y - dst_miny) * GX_ZBUFW + (dst_x - dst_minx) + dst_w; eax = (dst_y - dst_miny) * GX_ZBUFW + (dst_x - dst_minx) + dst_w;
// db0 = z8 = (UINT8)zcode; // db0 = z8 = (UINT8)zcode;
// db1 = p8 = (UINT8)pri; // db1 = p8 = (UINT8)pri;
ozbuf_ptr += eax; ozbuf_ptr += eax;
szbuf_ptr += eax << 1; szbuf_ptr += eax << 1;
dst_ptr += dst_y * dst_pitch + dst_x + dst_w; dst_ptr += dst_y * dst_pitch + dst_x + dst_w;

View File

@ -9013,7 +9013,7 @@ static void k001005_render_polygons( device_t *device )
if (k001005->_3d_fifo[i] == 0x80000003) if (k001005->_3d_fifo[i] == 0x80000003)
{ {
poly_extra_data *extra = (poly_extra_data *)poly_get_extra_data(k001005->poly); poly_extra_data *extra = (poly_extra_data *)poly_get_extra_data(k001005->poly);
// poly_vertex v[4]; // poly_vertex v[4];
int r, g, b, a; int r, g, b, a;
UINT32 color; UINT32 color;
int index = i; int index = i;

View File

@ -950,8 +950,8 @@ static UINT16 *push_direct(model1_state *state, UINT16 *list)
struct quad_m1 cquad; struct quad_m1 cquad;
tex_adr = readi(list); tex_adr = readi(list);
// v1 = readi(list+2); // v1 = readi(list+2);
// v2 = readi(list+10); // v2 = readi(list+10);
old_p0 = state->m_pointpt++; old_p0 = state->m_pointpt++;
old_p1 = state->m_pointpt++; old_p1 = state->m_pointpt++;
@ -999,7 +999,7 @@ static UINT16 *push_direct(model1_state *state, UINT16 *list)
p1 = state->m_pointpt++; p1 = state->m_pointpt++;
lum = readi(list+2); lum = readi(list+2);
// v1 = readi(list+4); // v1 = readi(list+4);
if(type == 2) { if(type == 2) {
p0->x = readf(list+6); p0->x = readf(list+6);

View File

@ -2501,11 +2501,11 @@ static UINT32 * geo_end( geo_state *geo, UINT32 opcode, UINT32 *input )
/* Command 10: Dummy */ /* Command 10: Dummy */
static UINT32 * geo_dummy( geo_state *geo, UINT32 opcode, UINT32 *input ) static UINT32 * geo_dummy( geo_state *geo, UINT32 opcode, UINT32 *input )
{ {
// UINT32 data; // UINT32 data;
(void)opcode; (void)opcode;
/* do the dummy read cycle */ /* do the dummy read cycle */
// data = *input++; // data = *input++;
input++; input++;
return input; return input;
@ -2571,7 +2571,7 @@ static UINT32 * geo_code_upload( geo_state *geo, UINT32 opcode, UINT32 *input )
(void)opcode; (void)opcode;
/* read in the flags */ /* read in the flags */
// flags = *input++; // flags = *input++;
input++; input++;
/* read in the count */ /* read in the count */
@ -2606,7 +2606,7 @@ static UINT32 * geo_code_upload( geo_state *geo, UINT32 opcode, UINT32 *input )
/* Command 1E: Code Jump (undocumented, unsupported) */ /* Command 1E: Code Jump (undocumented, unsupported) */
static UINT32 * geo_code_jump( geo_state *geo, UINT32 opcode, UINT32 *input ) static UINT32 * geo_code_jump( geo_state *geo, UINT32 opcode, UINT32 *input )
{ {
// UINT32 address; // UINT32 address;
/* /*
This command jumps to a specified address in program This command jumps to a specified address in program
@ -2620,7 +2620,7 @@ static UINT32 * geo_code_jump( geo_state *geo, UINT32 opcode, UINT32 *input )
(void)opcode; (void)opcode;
// address = *input++ & 0x3FF; // address = *input++ & 0x3FF;
input++; input++;
/* /*

View File

@ -349,7 +349,7 @@ void Processor::TCDiv(INT32 ss, INT32 st, INT32 sw, INT32* sss, INT32* sst)
} }
//compute clamp flags //compute clamp flags
int under_s = 0; int under_s = 0;
// int under_t = 0; // int under_t = 0;
int over_s = 0; int over_s = 0;
int over_t = 0; int over_t = 0;
@ -369,7 +369,7 @@ void Processor::TCDiv(INT32 ss, INT32 st, INT32 sw, INT32* sss, INT32* sst)
{ {
if (tprod & (1 << 29)) if (tprod & (1 << 29))
{ {
// under_t = 1; // under_t = 1;
} }
else else
{ {
@ -2784,16 +2784,16 @@ void N64::RDP::Processor::CmdLoadTile(UINT32 w1, UINT32 w2)
INT32 width = (sh - sl) + 1; INT32 width = (sh - sl) + 1;
INT32 height = (th - tl) + 1; INT32 height = (th - tl) + 1;
/* /*
int topad; int topad;
if (m_misc_state.m_ti_size < 3) if (m_misc_state.m_ti_size < 3)
{ {
topad = (width * m_misc_state.m_ti_size) & 0x7; topad = (width * m_misc_state.m_ti_size) & 0x7;
} }
else else
{ {
topad = (width << 2) & 0x7; topad = (width << 2) & 0x7;
} }
topad = 0; // ???? topad = 0; // ????
*/ */
switch (m_misc_state.m_ti_size) switch (m_misc_state.m_ti_size)
{ {

View File

@ -1780,7 +1780,7 @@ static void
BlitQuads( running_machine &machine, bitmap_t *bitmap, INT32 addr, float m[4][4], INT32 base ) BlitQuads( running_machine &machine, bitmap_t *bitmap, INT32 addr, float m[4][4], INT32 base )
{ {
namcos22_state *state = machine.driver_data<namcos22_state>(); namcos22_state *state = machine.driver_data<namcos22_state>();
// int numAdditionalNormals = 0; // int numAdditionalNormals = 0;
int chunkLength = GetPolyData(state, addr++); int chunkLength = GetPolyData(state, addr++);
int finish = addr + chunkLength; int finish = addr + chunkLength;
@ -1857,7 +1857,7 @@ BlitQuads( running_machine &machine, bitmap_t *bitmap, INT32 addr, float m[4][4]
000000 000000 007fff // normal vector 000000 000000 007fff // normal vector
000000 000000 007fff // normal vector 000000 000000 007fff // normal vector
*/ */
// numAdditionalNormals = GetPolyData(state, addr+2); // numAdditionalNormals = GetPolyData(state, addr+2);
state->m_mSurfaceNormalFormat = GetPolyData(state, addr+3); state->m_mSurfaceNormalFormat = GetPolyData(state, addr+3);
state->m_mLitSurfaceCount = 0; state->m_mLitSurfaceCount = 0;
state->m_mLitSurfaceIndex = 0; state->m_mLitSurfaceIndex = 0;
@ -2127,7 +2127,7 @@ SimulateSlaveDSP( running_machine &machine, bitmap_t *bitmap )
/* hackery! commands should be streamed, not parsed here */ /* hackery! commands should be streamed, not parsed here */
pSource += len; pSource += len;
// marker = (INT16)*pSource++; /* always 0xffff */ // marker = (INT16)*pSource++; /* always 0xffff */
pSource++; pSource++;
next = (INT16)*pSource++; /* link to next command */ next = (INT16)*pSource++; /* link to next command */
if( (next&0x7fff) != (pSource - (INT32 *)state->m_polygonram) ) if( (next&0x7fff) != (pSource - (INT32 *)state->m_polygonram) )

View File

@ -60,7 +60,7 @@ Blitter registers description (reg/bit names selected arbitrary ) :
fedcba98 76543210 fedcba98 76543210
--?????- ???????? unknown --?????- ???????? unknown
-------x -------- BLTSTRT_ROM_MSB src ROM MSB -------x -------- BLTSTRT_ROM_MSB src ROM MSB
-x------ -------- BLTSTRT_TRIGGER blit start -x------ -------- BLTSTRT_TRIGGER blit start
x------- -------- BLTSTRT_LAYER FG or BG layer of framebuffer x------- -------- BLTSTRT_LAYER FG or BG layer of framebuffer
70000e - BLT_UNK2 70000e - BLT_UNK2

View File

@ -3859,14 +3859,14 @@ static void stv_vdp2_check_tilemap_with_linescroll(running_machine &machine, bit
int scroll_values_equal; int scroll_values_equal;
int lines; int lines;
INT16 scrollx, scrolly; INT16 scrollx, scrolly;
// INT32 incx; // INT32 incx;
int linescroll_enable, vertical_linescroll_enable, linezoom_enable; int linescroll_enable, vertical_linescroll_enable, linezoom_enable;
int vertical_linescroll_index = -1; int vertical_linescroll_index = -1;
// read original scroll values // read original scroll values
scrollx = stv2_current_tilemap.scrollx; scrollx = stv2_current_tilemap.scrollx;
scrolly = stv2_current_tilemap.scrolly; scrolly = stv2_current_tilemap.scrolly;
// incx = stv2_current_tilemap.incx; // incx = stv2_current_tilemap.incx;
// prepare linescroll flags // prepare linescroll flags
linescroll_enable = stv2_current_tilemap.linescroll_enable; linescroll_enable = stv2_current_tilemap.linescroll_enable;
@ -3965,11 +3965,11 @@ static void stv_vdp2_check_tilemap_with_linescroll(running_machine &machine, bit
{ {
prev_scroll_values[i] &= 0x0007ff00; prev_scroll_values[i] &= 0x0007ff00;
if ( prev_scroll_values[i] & 0x00040000 ) prev_scroll_values[i] |= 0xfff80000; if ( prev_scroll_values[i] & 0x00040000 ) prev_scroll_values[i] |= 0xfff80000;
// incx = prev_scroll_values[i]; // incx = prev_scroll_values[i];
i++; i++;
} }
// if ( LOG_VDP2 ) logerror( "Linescroll: y < %d, %d >, scrollx = %d, scrolly = %d, incx = %f\n", mycliprect.min_y, mycliprect.max_y, stv2_current_tilemap.scrollx, stv2_current_tilemap.scrolly, (float)stv2_current_tilemap.incx/65536.0 ); // if ( LOG_VDP2 ) logerror( "Linescroll: y < %d, %d >, scrollx = %d, scrolly = %d, incx = %f\n", mycliprect.min_y, mycliprect.max_y, stv2_current_tilemap.scrollx, stv2_current_tilemap.scrolly, (float)stv2_current_tilemap.incx/65536.0 );
// render current tilemap portion // render current tilemap portion
stv_vdp2_check_tilemap(machine, bitmap, &mycliprect ); stv_vdp2_check_tilemap(machine, bitmap, &mycliprect );

View File

@ -1570,7 +1570,7 @@ static void buggyboy_draw_road(running_machine &machine, UINT8 *bitmap)
UINT32 bnkcs = 1; UINT32 bnkcs = 1;
UINT32 bnkrs = 1; UINT32 bnkrs = 1;
// UINT32 x_offs; // UINT32 x_offs;
UINT8 sf; UINT8 sf;
/* Vertical positions shift register */ /* Vertical positions shift register */
@ -1634,7 +1634,7 @@ static void buggyboy_draw_road(running_machine &machine, UINT8 *bitmap)
sld = (vprom[rva0_6] + vregs.slin_val) & 0x38; sld = (vprom[rva0_6] + vregs.slin_val) & 0x38;
/* Determine the x-offset */ /* Determine the x-offset */
// x_offs = ls161 & 7; // x_offs = ls161 & 7;
/* Fill vertical position shift register with bits for this line */ /* Fill vertical position shift register with bits for this line */
/* TODO; cheated slightly to shift stuff up one pixel*/ /* TODO; cheated slightly to shift stuff up one pixel*/
@ -2200,7 +2200,7 @@ static void buggybjr_draw_road(running_machine &machine, UINT8 *bitmap, int wide
UINT32 rcmd; UINT32 rcmd;
UINT32 bnkcs = 1; UINT32 bnkcs = 1;
// UINT32 x_offs; // UINT32 x_offs;
UINT8 sf; UINT8 sf;
/* Vertical positions shift register */ /* Vertical positions shift register */
@ -2259,7 +2259,7 @@ static void buggybjr_draw_road(running_machine &machine, UINT8 *bitmap, int wide
sld = (vprom[rva0_6] + vregs.slin_val) & 0x38; sld = (vprom[rva0_6] + vregs.slin_val) & 0x38;
/* Determine the x-offset */ /* Determine the x-offset */
// x_offs = ls161 & 7; // x_offs = ls161 & 7;
/* Fill vertical position shift register with bits for this line */ /* Fill vertical position shift register with bits for this line */
/* TODO; cheated slightly to shift stuff up one pixel*/ /* TODO; cheated slightly to shift stuff up one pixel*/

View File

@ -355,7 +355,7 @@ static void draw_sprites( running_machine &machine, bitmap_t *bitmap, const rect
int zx, zy, zoomx, zoomy, priority = 0; int zx, zy, zoomx, zoomy, priority = 0;
UINT8 small_sprite, col, flipx, flipy; UINT8 small_sprite, col, flipx, flipy;
UINT16 code, bigsprite, map_index; UINT16 code, bigsprite, map_index;
// UINT16 rotate = 0; // UINT16 rotate = 0;
UINT16 tile_mask = (machine.gfx[0]->total_elements) - 1; UINT16 tile_mask = (machine.gfx[0]->total_elements) - 1;
static const int primasks[2] = {0x0, 0xfffc}; /* fff0 => under rhs of road only */ static const int primasks[2] = {0x0, 0xfffc}; /* fff0 => under rhs of road only */
@ -378,10 +378,10 @@ static void draw_sprites( running_machine &machine, bitmap_t *bitmap, const rect
if ((spriteram[i + 4] == 0xfff6) && (spriteram[i + 5] == 0)) if ((spriteram[i + 4] == 0xfff6) && (spriteram[i + 5] == 0))
continue; continue;
// if (((spriteram[i + 4] != 0xf800) && (spriteram[i + 4] != 0xfff6)) // if (((spriteram[i + 4] != 0xf800) && (spriteram[i + 4] != 0xfff6))
// || ((spriteram[i + 5] != 0xf800) && (spriteram[i + 5] != 0)) // || ((spriteram[i + 5] != 0xf800) && (spriteram[i + 5] != 0))
// || spriteram[i + 7] != 0) // || spriteram[i + 7] != 0)
// rotate = i << 1; // rotate = i << 1;
/***** Begin zoom kludge ******/ /***** Begin zoom kludge ******/

View File

@ -781,7 +781,7 @@ static void memorywin_new(running_machine &machine)
downcast<debug_view_memory *>(mem->views[0]->view)->set_expression("0"); downcast<debug_view_memory *>(mem->views[0]->view)->set_expression("0");
// populate the combobox // populate the combobox
// cursel = 0; // cursel = 0;
item = 0; item = 0;
for (const debug_view_source *source = mem->views[0]->view->source_list().head(); source != NULL; source = source->next()) for (const debug_view_source *source = mem->views[0]->view->source_list().head(); source != NULL; source = source->next())
@ -878,7 +878,7 @@ static void disasmwin_new(running_machine &machine)
downcast<debug_view_disasm *>(dis->views[0]->view)->set_expression("curpc"); downcast<debug_view_disasm *>(dis->views[0]->view)->set_expression("curpc");
// populate the combobox // populate the combobox
// cursel = 0; // cursel = 0;
item = 0; item = 0;
for (const debug_view_source *source = dis->views[0]->view->source_list().head(); source != NULL; source = source->next()) for (const debug_view_source *source = dis->views[0]->view->source_list().head(); source != NULL; source = source->next())
{ {

View File

@ -677,7 +677,7 @@ static int drawsdl_window_draw(sdl_window_info *window, UINT32 dc, int update)
rmask = sdl->sdlsurf->format->Rmask; rmask = sdl->sdlsurf->format->Rmask;
gmask = sdl->sdlsurf->format->Gmask; gmask = sdl->sdlsurf->format->Gmask;
bmask = sdl->sdlsurf->format->Bmask; bmask = sdl->sdlsurf->format->Bmask;
// amask = sdl->sdlsurf->format->Amask; // amask = sdl->sdlsurf->format->Amask;
if (window->blitwidth != sdl->old_blitwidth || window->blitheight != sdl->old_blitheight) if (window->blitwidth != sdl->old_blitwidth || window->blitheight != sdl->old_blitheight)
{ {

View File

@ -151,7 +151,7 @@ private:
void end_avi_recording(); void end_avi_recording();
void begin_avi_recording(const char *name); void begin_avi_recording(const char *name);
bool screen_encountered[9]; // whether a given screen was encountered this frame bool screen_encountered[9]; // whether a given screen was encountered this frame
d3d * d3dintf; // D3D interface d3d * d3dintf; // D3D interface
win_window_info * window; // D3D window info win_window_info * window; // D3D window info

View File

@ -333,8 +333,8 @@ const options_entry windows_options::s_option_entries[] =
{ WINOPTION_HLSL_PRESCALE_SIZE, "3", OPTION_INTEGER, "HLSL scaling pre-pass factor (usually 2 or 3)" }, { WINOPTION_HLSL_PRESCALE_SIZE, "3", OPTION_INTEGER, "HLSL scaling pre-pass factor (usually 2 or 3)" },
{ WINOPTION_HLSL_PRESET";(-1-5)", "-1", OPTION_INTEGER, "HLSL preset to use (0-5)" }, { WINOPTION_HLSL_PRESET";(-1-5)", "-1", OPTION_INTEGER, "HLSL preset to use (0-5)" },
{ WINOPTION_HLSL_WRITE, NULL, OPTION_STRING, "enable HLSL AVI writing (huge disk bandwidth suggested)" }, { WINOPTION_HLSL_WRITE, NULL, OPTION_STRING, "enable HLSL AVI writing (huge disk bandwidth suggested)" },
{ WINOPTION_HLSL_SNAP_WIDTH, "2048", OPTION_STRING, "HLSL upscaled-snapshot width" }, { WINOPTION_HLSL_SNAP_WIDTH, "2048", OPTION_STRING, "HLSL upscaled-snapshot width" },
{ WINOPTION_HLSL_SNAP_HEIGHT, "1536", OPTION_STRING, "HLSL upscaled-snapshot height" }, { WINOPTION_HLSL_SNAP_HEIGHT, "1536", OPTION_STRING, "HLSL upscaled-snapshot height" },
{ WINOPTION_SHADOW_MASK_ALPHA";fs_shadwa(0.0-1.0)", "0.0", OPTION_FLOAT, "shadow mask alpha-blend value (1.0 is fully blended, 0.0 is no mask)" }, { WINOPTION_SHADOW_MASK_ALPHA";fs_shadwa(0.0-1.0)", "0.0", OPTION_FLOAT, "shadow mask alpha-blend value (1.0 is fully blended, 0.0 is no mask)" },
{ WINOPTION_SHADOW_MASK_TEXTURE";fs_shadwt(0.0-1.0)", "aperture.png", OPTION_STRING, "shadow mask texture name" }, { WINOPTION_SHADOW_MASK_TEXTURE";fs_shadwt(0.0-1.0)", "aperture.png", OPTION_STRING, "shadow mask texture name" },
{ WINOPTION_SHADOW_MASK_COUNT_X";fs_shadww", "640", OPTION_INTEGER, "shadow mask width, in phosphor dots" }, { WINOPTION_SHADOW_MASK_COUNT_X";fs_shadww", "640", OPTION_INTEGER, "shadow mask width, in phosphor dots" },

View File

@ -38,4 +38,4 @@
***************************************************************************/ ***************************************************************************/
extern const char build_version[]; extern const char build_version[];
const char build_version[] = "0.142u4 ("__DATE__")"; const char build_version[] = "0.142u5 ("__DATE__")";