mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
GCC 4.6 "Variable assigned but not used" fixes part 4 (no whatsnew)
This commit is contained in:
parent
c6ff977c4f
commit
7d5d4c3d2f
@ -61,16 +61,16 @@ static WRITE16_HANDLER( f3_es5505_bank_w )
|
||||
|
||||
static WRITE16_HANDLER( f3_volume_w )
|
||||
{
|
||||
static UINT16 channel[8],last_l,last_r;
|
||||
static int latch;
|
||||
// static UINT16 channel[8],last_l,last_r;
|
||||
// static int latch;
|
||||
|
||||
if (offset==0) latch=(data>>8)&0x7;
|
||||
if (offset==1) channel[latch]=data>>8;
|
||||
// if (offset==0) latch=(data>>8)&0x7;
|
||||
// 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[6]!=last_r) mixer_set_volume(1, (int)((float)channel[6]*1.58)); /* Right master volume */
|
||||
last_l=channel[7];
|
||||
last_r=channel[6];
|
||||
// last_l=channel[7];
|
||||
// last_r=channel[6];
|
||||
|
||||
/* 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 */
|
||||
|
@ -273,13 +273,13 @@ SCREEN_UPDATE( test_vcu )
|
||||
static SCREEN_UPDATE( mazerbla )
|
||||
{
|
||||
mazerbla_state *state = screen->machine().driver_data<mazerbla_state>();
|
||||
UINT32 color_base = 0;
|
||||
// UINT32 color_base = 0;
|
||||
|
||||
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)
|
||||
color_base = 0x00;
|
||||
// if (state->m_game_id == GREATGUN)
|
||||
// color_base = 0x00;
|
||||
|
||||
// bitmap_fill(bitmap, NULL, 0);
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
segas32_state *state = space->machine().driver_data<segas32_state>();
|
||||
UINT8 old;
|
||||
// UINT8 old;
|
||||
|
||||
/* only LSB matters */
|
||||
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 */
|
||||
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;
|
||||
|
||||
switch (offset)
|
||||
|
@ -2189,6 +2189,7 @@ static void build_optable(running_machine &machine)
|
||||
length += ((flags & OF_SIZEMASK) == OF_LONG) ? 2 : 1;
|
||||
|
||||
/* make sure we match the disassembler */
|
||||
#ifdef DEBUG
|
||||
{
|
||||
char dummybuffer[40];
|
||||
UINT8 instrbuffer[10];
|
||||
@ -2197,6 +2198,7 @@ static void build_optable(running_machine &machine)
|
||||
dummybuffer[0] = 0;
|
||||
assert(length == (m68k_disassemble_raw(dummybuffer, 0, instrbuffer, instrbuffer, M68K_CPU_TYPE_68000) & 0xff) / 2);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* set the value of the entry in the table */
|
||||
optable[opnum | eabits].flags = flags | (length << 28);
|
||||
|
@ -1031,7 +1031,7 @@ static int audio_fifo_num = 0;
|
||||
|
||||
static void audio_fifo_push(running_machine &machine, UINT32 address, UINT32 length)
|
||||
{
|
||||
AUDIO_DMA *current;
|
||||
// AUDIO_DMA *current;
|
||||
|
||||
if (audio_fifo_num == AUDIO_DMA_DEPTH)
|
||||
{
|
||||
@ -1042,7 +1042,7 @@ static void audio_fifo_push(running_machine &machine, UINT32 address, UINT32 len
|
||||
|
||||
audio_fifo[audio_fifo_wpos].address = address;
|
||||
audio_fifo[audio_fifo_wpos].length = length;
|
||||
current = &audio_fifo[audio_fifo_wpos];
|
||||
// current = &audio_fifo[audio_fifo_wpos];
|
||||
|
||||
audio_fifo_wpos++;
|
||||
audio_fifo_num++;
|
||||
@ -1644,7 +1644,7 @@ static int pif_channel_handle_command(running_machine &machine, int channel, int
|
||||
|
||||
case 0x02:
|
||||
{
|
||||
UINT32 address, checksum;
|
||||
UINT32 address;
|
||||
|
||||
/*mame_printf_debug("Read from mempack, rlength = %d, slength = %d\n", rlength, slength);
|
||||
for (i=0; i < slength; i++)
|
||||
@ -1654,7 +1654,7 @@ static int pif_channel_handle_command(running_machine &machine, int channel, int
|
||||
mame_printf_debug("\n");*/
|
||||
|
||||
address = (sdata[1] << 8) | (sdata[2]);
|
||||
checksum = address & 0x1f;
|
||||
// checksum = address & 0x1f;
|
||||
address &= ~0x1f;
|
||||
|
||||
if (address == 0x400)
|
||||
@ -1681,7 +1681,7 @@ static int pif_channel_handle_command(running_machine &machine, int channel, int
|
||||
}
|
||||
case 0x03:
|
||||
{
|
||||
UINT32 address, checksum;
|
||||
UINT32 address;
|
||||
int i;
|
||||
/*mame_printf_debug("Write to mempack, rlength = %d, slength = %d\n", rlength, slength);
|
||||
for (i=0; i < slength; i++)
|
||||
@ -1691,7 +1691,7 @@ static int pif_channel_handle_command(running_machine &machine, int channel, int
|
||||
mame_printf_debug("\n");*/
|
||||
|
||||
address = (sdata[1] << 8) | (sdata[2]);
|
||||
checksum = address & 0x1f;
|
||||
// checksum = address & 0x1f;
|
||||
address &= ~0x1f;
|
||||
|
||||
if (address == 0x8000)
|
||||
|
@ -2416,14 +2416,14 @@ static WRITE16_HANDLER( generic_cop_w )
|
||||
{
|
||||
UINT8 offs;
|
||||
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]);
|
||||
|
||||
offs = (offset & 3) * 4;
|
||||
|
||||
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
|
||||
|
||||
if(div == 0) { div = 1; }
|
||||
|
@ -349,7 +349,7 @@ void Processor::TCDiv(INT32 ss, INT32 st, INT32 sw, INT32* sss, INT32* sst)
|
||||
}
|
||||
//compute clamp flags
|
||||
int under_s = 0;
|
||||
int under_t = 0;
|
||||
// int under_t = 0;
|
||||
int over_s = 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))
|
||||
{
|
||||
under_t = 1;
|
||||
// under_t = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -2783,7 +2783,7 @@ void N64::RDP::Processor::CmdLoadTile(UINT32 w1, UINT32 w2)
|
||||
|
||||
INT32 width = (sh - sl) + 1;
|
||||
INT32 height = (th - tl) + 1;
|
||||
|
||||
/*
|
||||
int topad;
|
||||
if (m_misc_state.m_ti_size < 3)
|
||||
{
|
||||
@ -2794,7 +2794,7 @@ void N64::RDP::Processor::CmdLoadTile(UINT32 w1, UINT32 w2)
|
||||
topad = (width << 2) & 0x7;
|
||||
}
|
||||
topad = 0; // ????
|
||||
|
||||
*/
|
||||
switch (m_misc_state.m_ti_size)
|
||||
{
|
||||
case PIXEL_SIZE_8BIT:
|
||||
|
@ -3859,14 +3859,14 @@ static void stv_vdp2_check_tilemap_with_linescroll(running_machine &machine, bit
|
||||
int scroll_values_equal;
|
||||
int lines;
|
||||
INT16 scrollx, scrolly;
|
||||
INT32 incx;
|
||||
// INT32 incx;
|
||||
int linescroll_enable, vertical_linescroll_enable, linezoom_enable;
|
||||
int vertical_linescroll_index = -1;
|
||||
|
||||
// read original scroll values
|
||||
scrollx = stv2_current_tilemap.scrollx;
|
||||
scrolly = stv2_current_tilemap.scrolly;
|
||||
incx = stv2_current_tilemap.incx;
|
||||
// incx = stv2_current_tilemap.incx;
|
||||
|
||||
// prepare linescroll flags
|
||||
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;
|
||||
if ( prev_scroll_values[i] & 0x00040000 ) prev_scroll_values[i] |= 0xfff80000;
|
||||
incx = prev_scroll_values[i];
|
||||
// incx = prev_scroll_values[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
|
||||
stv_vdp2_check_tilemap(machine, bitmap, &mycliprect );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user