fixed most of the -Wunreachable-code-break and -Wunreachable-code-return warnings of clang 3.5 when compiling MAME (nw)

This commit is contained in:
Oliver Stöneberg 2014-09-09 19:04:23 +00:00
parent 805bd51118
commit 30bb95b31d
48 changed files with 42 additions and 191 deletions

View File

@ -397,7 +397,6 @@ READ8_MEMBER( k053260_device::k053260_r )
return status; return status;
} }
break;
case 0x2e: /* read ROM */ case 0x2e: /* read ROM */
if ( m_mode & 1 ) if ( m_mode & 1 )

View File

@ -448,6 +448,4 @@ READ16_MEMBER(zsg2_device::read)
{ {
return control_r(offset - 0x300); return control_r(offset - 0x300);
} }
return 0;
} }

View File

@ -711,7 +711,6 @@ bool h63484_device::set_dot(INT16 x, INT16 y, INT16 px, INT16 py)
case 0x03: case 0x03:
fatalerror("HD63484 color modes (Pattern RAM indirect)\n"); fatalerror("HD63484 color modes (Pattern RAM indirect)\n");
// TODO // TODO
break;
} }
return false; return false;
@ -1766,7 +1765,6 @@ void h63484_device::process_fifo()
default: default:
printf("%04x\n",m_cr); printf("%04x\n",m_cr);
fatalerror("stop!\n"); fatalerror("stop!\n");
break;
} }
} }

View File

@ -1654,7 +1654,6 @@ static UINT32 cmdfifo_execute(voodoo_state *v, cmdfifo_info *f)
case 2: /* RET */ case 2: /* RET */
if (LOG_CMDFIFO) logerror(" RET $%06X\n", target); if (LOG_CMDFIFO) logerror(" RET $%06X\n", target);
fatalerror("RET in CMDFIFO!\n"); fatalerror("RET in CMDFIFO!\n");
break;
case 3: /* JMP LOCAL FRAME BUFFER */ case 3: /* JMP LOCAL FRAME BUFFER */
if (LOG_CMDFIFO) logerror(" JMP LOCAL FRAMEBUF $%06X\n", target); if (LOG_CMDFIFO) logerror(" JMP LOCAL FRAMEBUF $%06X\n", target);
@ -1670,7 +1669,6 @@ static UINT32 cmdfifo_execute(voodoo_state *v, cmdfifo_info *f)
default: default:
osd_printf_debug("INVALID JUMP COMMAND!\n"); osd_printf_debug("INVALID JUMP COMMAND!\n");
fatalerror(" INVALID JUMP COMMAND\n"); fatalerror(" INVALID JUMP COMMAND\n");
break;
} }
break; break;
@ -2889,7 +2887,6 @@ static INT32 register_w(voodoo_state *v, offs_t offset, UINT32 data)
/* send tmu config data to the frame buffer */ /* send tmu config data to the frame buffer */
v->send_config = (TREXINIT_SEND_TMU_CONFIG(data) > 0); v->send_config = (TREXINIT_SEND_TMU_CONFIG(data) > 0);
goto default_case; goto default_case;
break;
/* these registers are referenced in the renderer; we must wait for pending work before changing */ /* these registers are referenced in the renderer; we must wait for pending work before changing */
case chromaRange: case chromaRange:
@ -4571,7 +4568,6 @@ WRITE32_MEMBER( voodoo_banshee_device::banshee_agp_w )
case cmdBump0: case cmdBump0:
fatalerror("cmdBump0\n"); fatalerror("cmdBump0\n");
break;
case cmdRdPtrL0: case cmdRdPtrL0:
v->fbi.cmdfifo[0].rdptr = data; v->fbi.cmdfifo[0].rdptr = data;
@ -4608,7 +4604,6 @@ WRITE32_MEMBER( voodoo_banshee_device::banshee_agp_w )
case cmdBump1: case cmdBump1:
fatalerror("cmdBump1\n"); fatalerror("cmdBump1\n");
break;
case cmdRdPtrL1: case cmdRdPtrL1:
v->fbi.cmdfifo[1].rdptr = data; v->fbi.cmdfifo[1].rdptr = data;
@ -4956,7 +4951,6 @@ void voodoo_device::common_start_voodoo(UINT8 type)
default: default:
fatalerror("Unsupported voodoo card in voodoo_start!\n"); fatalerror("Unsupported voodoo card in voodoo_start!\n");
break;
} }
/* set the type, and initialize the chip mask */ /* set the type, and initialize the chip mask */

View File

@ -245,7 +245,7 @@ READ8_MEMBER(airbustr_state::devram_r)
return (x & 0x00ff) >> 0; return (x & 0x00ff) >> 0;
else else
return (x & 0xff00) >> 8; return (x & 0xff00) >> 8;
} break; }
/* Reading eff4, F0 times must yield at most 80-1 consecutive /* Reading eff4, F0 times must yield at most 80-1 consecutive
equal values */ equal values */

View File

@ -215,7 +215,6 @@ READ16_MEMBER(bmcbowl_state::bmc_protection_r)
case 0x1013: return 0; case 0x1013: return 0;
default: return 0x46<<8; default: return 0x46<<8;
} }
break;
} }
logerror("Protection read @ %X\n",space.device().safe_pcbase()); logerror("Protection read @ %X\n",space.device().safe_pcbase());
return machine().rand(); return machine().rand();

View File

@ -51,7 +51,6 @@ READ8_MEMBER(cbasebal_state::bankedram_r)
return m_palette->basemem().read8(offset); return m_palette->basemem().read8(offset);
else else
return 0; return 0;
break;
default: default:
return cbasebal_scrollram_r(space, offset); /* SCROLL */ return cbasebal_scrollram_r(space, offset); /* SCROLL */
} }

View File

@ -1989,37 +1989,29 @@ UINT32 nv2a_renderer::texture_get_texel(int number,int x,int y)
switch (c) { switch (c) {
case 0: case 0:
return 0xff000000 + convert_r5g6b5_r8g8b8(color0); return 0xff000000 + convert_r5g6b5_r8g8b8(color0);
break;
case 1: case 1:
return 0xff000000 + convert_r5g6b5_r8g8b8(color1); return 0xff000000 + convert_r5g6b5_r8g8b8(color1);
break;
case 2: case 2:
cb = pal5bit(((color0m2 & 0x003e) + (color1 & 0x001f)) / 3); cb = pal5bit(((color0m2 & 0x003e) + (color1 & 0x001f)) / 3);
cg = pal6bit(((color0m2 & 0x0fc0) + (color1 & 0x07e0)) / 3 >> 5); cg = pal6bit(((color0m2 & 0x0fc0) + (color1 & 0x07e0)) / 3 >> 5);
cr = pal5bit(((color0m2 & 0x1f000) + color1) / 3 >> 11); cr = pal5bit(((color0m2 & 0x1f000) + color1) / 3 >> 11);
return 0xff000000 | (cr << 16) | (cg << 8) | (cb); return 0xff000000 | (cr << 16) | (cg << 8) | (cb);
break;
case 3: case 3:
cb = pal5bit(((color1m2 & 0x003e) + (color0 & 0x001f)) / 3); cb = pal5bit(((color1m2 & 0x003e) + (color0 & 0x001f)) / 3);
cg = pal6bit(((color1m2 & 0x0fc0) + (color0 & 0x07e0)) / 3 >> 5); cg = pal6bit(((color1m2 & 0x0fc0) + (color0 & 0x07e0)) / 3 >> 5);
cr = pal5bit(((color1m2 & 0x1f000) + color0) / 3 >> 11); cr = pal5bit(((color1m2 & 0x1f000) + color0) / 3 >> 11);
return 0xff000000 | (cr << 16) | (cg << 8) | (cb); return 0xff000000 | (cr << 16) | (cg << 8) | (cb);
break;
case 4: case 4:
return 0xff000000 + convert_r5g6b5_r8g8b8(color0); return 0xff000000 + convert_r5g6b5_r8g8b8(color0);
break;
case 5: case 5:
return 0xff000000 + convert_r5g6b5_r8g8b8(color1); return 0xff000000 + convert_r5g6b5_r8g8b8(color1);
break;
case 6: case 6:
cb = pal5bit(((color0 & 0x001f) + (color1 & 0x001f)) / 2); cb = pal5bit(((color0 & 0x001f) + (color1 & 0x001f)) / 2);
cg = pal6bit(((color0 & 0x07e0) + (color1 & 0x07e0)) / 2 >> 5); cg = pal6bit(((color0 & 0x07e0) + (color1 & 0x07e0)) / 2 >> 5);
cr = pal5bit(((color0 & 0xf800) + (color1 & 0xf800)) / 2 >> 11); cr = pal5bit(((color0 & 0xf800) + (color1 & 0xf800)) / 2 >> 11);
return 0xff000000 | (cr << 16) | (cg << 8) | (cb); return 0xff000000 | (cr << 16) | (cg << 8) | (cb);
break;
default: default:
return 0xff000000; return 0xff000000;
break;
} }
case DXT3: case DXT3:
bx = x >> 2; bx = x >> 2;
@ -2038,24 +2030,19 @@ UINT32 nv2a_renderer::texture_get_texel(int number,int x,int y)
switch (c) { switch (c) {
case 0: case 0:
return ((ca + (ca << 4)) << 24) + convert_r5g6b5_r8g8b8(color0); return ((ca + (ca << 4)) << 24) + convert_r5g6b5_r8g8b8(color0);
break;
case 1: case 1:
return ((ca + (ca << 4)) << 24) + convert_r5g6b5_r8g8b8(color1); return ((ca + (ca << 4)) << 24) + convert_r5g6b5_r8g8b8(color1);
break;
case 2: case 2:
cb = pal5bit((2 * (color0 & 0x001f) + (color1 & 0x001f)) / 3); cb = pal5bit((2 * (color0 & 0x001f) + (color1 & 0x001f)) / 3);
cg = pal6bit((2 * (color0 & 0x07e0) + (color1 & 0x07e0)) / 3 >> 5); cg = pal6bit((2 * (color0 & 0x07e0) + (color1 & 0x07e0)) / 3 >> 5);
cr = pal5bit((2 * (color0 & 0xf800) + (color1 & 0xf800)) / 3 >> 11); cr = pal5bit((2 * (color0 & 0xf800) + (color1 & 0xf800)) / 3 >> 11);
return ((ca + (ca << 4)) << 24) | (cr << 16) | (cg << 8) | (cb); return ((ca + (ca << 4)) << 24) | (cr << 16) | (cg << 8) | (cb);
break;
default: default:
cb = pal5bit(((color0 & 0x001f) + 2 * (color1 & 0x001f)) / 3); cb = pal5bit(((color0 & 0x001f) + 2 * (color1 & 0x001f)) / 3);
cg = pal6bit(((color0 & 0x07e0) + 2 * (color1 & 0x07e0)) / 3 >> 5); cg = pal6bit(((color0 & 0x07e0) + 2 * (color1 & 0x07e0)) / 3 >> 5);
cr = pal5bit(((color0 & 0xf800) + 2 * (color1 & 0xf800)) / 3 >> 11); cr = pal5bit(((color0 & 0xf800) + 2 * (color1 & 0xf800)) / 3 >> 11);
return ((ca + (ca << 4)) << 24) | (cr << 16) | (cg << 8) | (cb); return ((ca + (ca << 4)) << 24) | (cr << 16) | (cg << 8) | (cb);
break;
} }
break;
case A4R4G4B4: case A4R4G4B4:
to = dilated0[texture[number].dilate][x] + dilated1[texture[number].dilate][y]; // offset of texel in texture memory to = dilated0[texture[number].dilate][x] + dilated1[texture[number].dilate][y]; // offset of texel in texture memory
a4r4g4b4 = *(((UINT16 *)texture[number].buffer) + to); // get texel color a4r4g4b4 = *(((UINT16 *)texture[number].buffer) + to); // get texel color
@ -2144,22 +2131,18 @@ UINT32 nv2a_renderer::texture_get_texel(int number,int x,int y)
switch (c) { switch (c) {
case 0: case 0:
return (ca << 24) + convert_r5g6b5_r8g8b8(color0); return (ca << 24) + convert_r5g6b5_r8g8b8(color0);
break;
case 1: case 1:
return (ca << 24) + convert_r5g6b5_r8g8b8(color1); return (ca << 24) + convert_r5g6b5_r8g8b8(color1);
break;
case 2: case 2:
cb = pal5bit((2 * (color0 & 0x001f) + (color1 & 0x001f)) / 3); cb = pal5bit((2 * (color0 & 0x001f) + (color1 & 0x001f)) / 3);
cg = pal6bit((2 * (color0 & 0x07e0) + (color1 & 0x07e0)) / 3 >> 5); cg = pal6bit((2 * (color0 & 0x07e0) + (color1 & 0x07e0)) / 3 >> 5);
cr = pal5bit((2 * (color0 & 0xf800) + (color1 & 0xf800)) / 3 >> 11); cr = pal5bit((2 * (color0 & 0xf800) + (color1 & 0xf800)) / 3 >> 11);
return (ca << 24) | (cr << 16) | (cg << 8) | (cb); return (ca << 24) | (cr << 16) | (cg << 8) | (cb);
break;
default: default:
cb = pal5bit(((color0 & 0x001f) + 2 * (color1 & 0x001f)) / 3); cb = pal5bit(((color0 & 0x001f) + 2 * (color1 & 0x001f)) / 3);
cg = pal6bit(((color0 & 0x07e0) + 2 * (color1 & 0x07e0)) / 3 >> 5); cg = pal6bit(((color0 & 0x07e0) + 2 * (color1 & 0x07e0)) / 3 >> 5);
cr = pal5bit(((color0 & 0xf800) + 2 * (color1 & 0xf800)) / 3 >> 11); cr = pal5bit(((color0 & 0xf800) + 2 * (color1 & 0xf800)) / 3 >> 11);
return (ca << 24) | (cr << 16) | (cg << 8) | (cb); return (ca << 24) | (cr << 16) | (cg << 8) | (cb);
break;
} }
default: default:
return 0xff00ff00; return 0xff00ff00;
@ -2192,7 +2175,6 @@ void nv2a_renderer::write_pixel(int x, int y, UINT32 color)
switch (alpha_func) { switch (alpha_func) {
case nv2a_renderer::NEVER: case nv2a_renderer::NEVER:
return; return;
break;
case nv2a_renderer::ALWAYS: case nv2a_renderer::ALWAYS:
default: default:
break; break;
@ -3563,49 +3545,36 @@ float nv2a_renderer::combiner_map_input_select(int code,int index)
case 0: case 0:
default: default:
return combiner.register_zero[index]; return combiner.register_zero[index];
break;
case 1: case 1:
return combiner.register_color0[index]; return combiner.register_color0[index];
break;
case 2: case 2:
return combiner.register_color1[index]; return combiner.register_color1[index];
break;
case 3: case 3:
return combiner.register_fogcolor[index]; return combiner.register_fogcolor[index];
break;
case 4: case 4:
return combiner.register_primarycolor[index]; return combiner.register_primarycolor[index];
break;
case 5: case 5:
return combiner.register_secondarycolor[index]; return combiner.register_secondarycolor[index];
break;
case 8: case 8:
return combiner.register_texture0color[index]; return combiner.register_texture0color[index];
break;
case 9: case 9:
return combiner.register_texture1color[index]; return combiner.register_texture1color[index];
break;
case 10: case 10:
return combiner.register_texture2color[index]; return combiner.register_texture2color[index];
break;
case 11: case 11:
return combiner.register_texture3color[index]; return combiner.register_texture3color[index];
break;
case 12: case 12:
return combiner.register_spare0[index]; return combiner.register_spare0[index];
break;
case 13: case 13:
return combiner.register_spare1[index]; return combiner.register_spare1[index];
break;
case 14: case 14:
return combiner.variable_sumclamp[index]; return combiner.variable_sumclamp[index];
break;
case 15: case 15:
return combiner.variable_EF[index]; return combiner.variable_EF[index];
break;
} }
return 0; // never executed
//return 0;
} }
float *nv2a_renderer::combiner_map_input_select3(int code) float *nv2a_renderer::combiner_map_input_select3(int code)
@ -3614,49 +3583,36 @@ float *nv2a_renderer::combiner_map_input_select3(int code)
case 0: case 0:
default: default:
return combiner.register_zero; return combiner.register_zero;
break;
case 1: case 1:
return combiner.register_color0; return combiner.register_color0;
break;
case 2: case 2:
return combiner.register_color1; return combiner.register_color1;
break;
case 3: case 3:
return combiner.register_fogcolor; return combiner.register_fogcolor;
break;
case 4: case 4:
return combiner.register_primarycolor; return combiner.register_primarycolor;
break;
case 5: case 5:
return combiner.register_secondarycolor; return combiner.register_secondarycolor;
break;
case 8: case 8:
return combiner.register_texture0color; return combiner.register_texture0color;
break;
case 9: case 9:
return combiner.register_texture1color; return combiner.register_texture1color;
break;
case 10: case 10:
return combiner.register_texture2color; return combiner.register_texture2color;
break;
case 11: case 11:
return combiner.register_texture3color; return combiner.register_texture3color;
break;
case 12: case 12:
return combiner.register_spare0; return combiner.register_spare0;
break;
case 13: case 13:
return combiner.register_spare1; return combiner.register_spare1;
break;
case 14: case 14:
return combiner.variable_sumclamp; return combiner.variable_sumclamp;
break;
case 15: case 15:
return combiner.variable_EF; return combiner.variable_EF;
break;
} }
return 0; // never executed
//return 0;
} }
float *nv2a_renderer::combiner_map_output_select3(int code) float *nv2a_renderer::combiner_map_output_select3(int code)
@ -3664,50 +3620,34 @@ float *nv2a_renderer::combiner_map_output_select3(int code)
switch (code) { switch (code) {
case 0: case 0:
return 0; return 0;
break;
case 1: case 1:
return 0; return 0;
break;
case 2: case 2:
return 0; return 0;
break;
case 3: case 3:
return 0; return 0;
break;
case 4: case 4:
return combiner.register_primarycolor; return combiner.register_primarycolor;
break;
case 5: case 5:
return combiner.register_secondarycolor; return combiner.register_secondarycolor;
break;
case 8: case 8:
return combiner.register_texture0color; return combiner.register_texture0color;
break;
case 9: case 9:
return combiner.register_texture1color; return combiner.register_texture1color;
break;
case 10: case 10:
return combiner.register_texture2color; return combiner.register_texture2color;
break;
case 11: case 11:
return combiner.register_texture3color; return combiner.register_texture3color;
break;
case 12: case 12:
return combiner.register_spare0; return combiner.register_spare0;
break;
case 13: case 13:
return combiner.register_spare1; return combiner.register_spare1;
break;
case 14: case 14:
return 0; return 0;
break;
case 15: case 15:
default: default:
return 0; return 0;
break;
} }
return 0;
} }
float nv2a_renderer::combiner_map_input_function(int code,float value) float nv2a_renderer::combiner_map_input_function(int code,float value)
@ -3717,33 +3657,26 @@ float nv2a_renderer::combiner_map_input_function(int code,float value)
switch (code) { switch (code) {
case 0: case 0:
return MAX(0.0,value); return MAX(0.0,value);
break;
case 1: case 1:
t=MAX(value, 0.0); t=MAX(value, 0.0);
return 1.0 - MIN(t, 1.0); return 1.0 - MIN(t, 1.0);
break;
case 2: case 2:
return 2.0 * MAX(0.0, value) - 1.0; return 2.0 * MAX(0.0, value) - 1.0;
break;
case 3: case 3:
return -2.0 * MAX(0.0, value) + 1.0; return -2.0 * MAX(0.0, value) + 1.0;
break;
case 4: case 4:
return MAX(0.0, value) - 0.5; return MAX(0.0, value) - 0.5;
break;
case 5: case 5:
return -MAX(0.0, value) + 0.5; return -MAX(0.0, value) + 0.5;
break;
case 6: case 6:
return value; return value;
break;
case 7: case 7:
default: default:
return -value; return -value;
break;
} }
return 0; // never executed
//return 0;
} }
void nv2a_renderer::combiner_map_input_function3(int code,float *data) void nv2a_renderer::combiner_map_input_function3(int code,float *data)
@ -3786,7 +3719,6 @@ void nv2a_renderer::combiner_map_input_function3(int code,float *data)
break; break;
case 6: case 6:
return; return;
break;
case 7: case 7:
default: default:
data[0]=-data[0]; data[0]=-data[0];

View File

@ -366,7 +366,6 @@ READ8_MEMBER(cops_state::io1_r)
logerror("Unknown io1_r, offset = %03x\n", offset); logerror("Unknown io1_r, offset = %03x\n", offset);
return 0; return 0;
} }
return 0;
} }
WRITE8_MEMBER(cops_state::io1_w) WRITE8_MEMBER(cops_state::io1_w)

View File

@ -1768,7 +1768,6 @@ READ32_MEMBER(cps3_state::cps3_eeprom_r)
// if(DEBUG_PRINTF) printf("unk read eeprom addr %04x, mask %08x\n", addr, mem_mask); // if(DEBUG_PRINTF) printf("unk read eeprom addr %04x, mask %08x\n", addr, mem_mask);
return 0x00000000; return 0x00000000;
} }
return 0x00000000;
} }
WRITE32_MEMBER(cps3_state::cps3_eeprom_w) WRITE32_MEMBER(cps3_state::cps3_eeprom_w)

View File

@ -1905,7 +1905,6 @@ int firebeat_state::ibutton_w(UINT8 data)
default: default:
{ {
fatalerror("ibutton: unknown normal mode cmd %02X\n", data); fatalerror("ibutton: unknown normal mode cmd %02X\n", data);
break;
} }
} }
break; break;

View File

@ -391,7 +391,8 @@ READ8_MEMBER(gottlieb_state::laserdisc_status_r)
m_laserdisc_audio_address %= AUDIORAM_SIZE; m_laserdisc_audio_address %= AUDIORAM_SIZE;
return result; return result;
} }
return 0; // never executed
//return 0;
} }

View File

@ -215,7 +215,8 @@ READ8_MEMBER(hitpoker_state::eeprom_r)
return ret; return ret;
/*** ***/ /*** ***/
return m_eeprom_data[m_eeprom_index & 0xfff]; // FIXME: never executed
//return m_eeprom_data[m_eeprom_index & 0xfff];
} }
READ8_MEMBER(hitpoker_state::hitpoker_pic_r) READ8_MEMBER(hitpoker_state::hitpoker_pic_r)

View File

@ -2372,8 +2372,6 @@ READ16_MEMBER(igs017_state::lhzb2a_prot_r)
logerror("%s: read bitswap - val %04x -> %02x\n", machine().describe_context(), m_prot_val, res); logerror("%s: read bitswap - val %04x -> %02x\n", machine().describe_context(), m_prot_val, res);
return res; return res;
break;
} }
default: default:

View File

@ -687,7 +687,6 @@ READ16_MEMBER(jpmsys5_state::coins_awp_r)
{ {
return ioport("COINS")->read() << 8; return ioport("COINS")->read() << 8;
} }
break;
default: default:
{ {
logerror("coins read offset: %x",offset); logerror("coins read offset: %x",offset);

View File

@ -319,7 +319,6 @@ READ8_MEMBER(lethal_state::guns_r)
return 0; return 0;
else else
return (232 - GUNY(1)); return (232 - GUNY(1));
break;
case 2: case 2:
return GUNX(2) >> 1; return GUNX(2) >> 1;
case 3: case 3:
@ -327,7 +326,6 @@ READ8_MEMBER(lethal_state::guns_r)
return 0; return 0;
else else
return (232 - GUNY(2)); return (232 - GUNY(2));
break;
} }
return 0; return 0;

View File

@ -691,7 +691,6 @@ READ32_MEMBER( magictg_state::adsp_idma_data_r )
else else
{ {
fatalerror("????\n"); fatalerror("????\n");
return 0;
} }
} }

View File

@ -224,13 +224,11 @@ READ8_MEMBER(mitchell_state::input_r)
return mahjong_input_r(space, offset - 1); return mahjong_input_r(space, offset - 1);
else else
return ioport("IN0")->read(); return ioport("IN0")->read();
break;
case 2: /* Block Block - dial control */ case 2: /* Block Block - dial control */
if (offset) if (offset)
return block_input_r(space, offset - 1); return block_input_r(space, offset - 1);
else else
return ioport("IN0")->read(); return ioport("IN0")->read();
break;
case 3: /* Super Pang - simulate START 1 press to initialize EEPROM */ case 3: /* Super Pang - simulate START 1 press to initialize EEPROM */
return ioport(portnames[offset])->read(); return ioport(portnames[offset])->read();
} }

View File

@ -781,8 +781,9 @@ WRITE16_MEMBER(model1_state::network_ctl_w)
WRITE16_MEMBER(model1_state::md1_w) WRITE16_MEMBER(model1_state::md1_w)
{ {
COMBINE_DATA(m_display_list1+offset); COMBINE_DATA(m_display_list1+offset);
if(0 && offset) // never executed
return; //if(0 && offset)
// return;
if(1 && m_dump) if(1 && m_dump)
logerror("TGP: md1_w %x, %04x @ %04x (%x)\n", offset, data, mem_mask, space.device().safe_pc()); logerror("TGP: md1_w %x, %04x @ %04x (%x)\n", offset, data, mem_mask, space.device().safe_pc());
} }
@ -790,8 +791,9 @@ WRITE16_MEMBER(model1_state::md1_w)
WRITE16_MEMBER(model1_state::md0_w) WRITE16_MEMBER(model1_state::md0_w)
{ {
COMBINE_DATA(m_display_list0+offset); COMBINE_DATA(m_display_list0+offset);
if(0 && offset) // never executed
return; //if(0 && offset)
// return;
if(1 && m_dump) if(1 && m_dump)
logerror("TGP: md0_w %x, %04x @ %04x (%x)\n", offset, data, mem_mask, space.device().safe_pc()); logerror("TGP: md0_w %x, %04x @ %04x (%x)\n", offset, data, mem_mask, space.device().safe_pc());
} }

View File

@ -143,7 +143,6 @@ bool model2_state::copro_fifoin_pop(device_t *device, UINT32 *result,UINT32 offs
return false; return false;
fatalerror("Copro FIFOIN underflow (at %08X)\n", device->safe_pc()); fatalerror("Copro FIFOIN underflow (at %08X)\n", device->safe_pc());
return false;
} }
r = m_copro_fifoin_data[m_copro_fifoin_rpos++]; r = m_copro_fifoin_data[m_copro_fifoin_rpos++];
@ -203,7 +202,6 @@ void model2_state::copro_fifoin_push(device_t *device, UINT32 data, UINT32 offse
if (m_copro_fifoin_num == COPRO_FIFOIN_SIZE) if (m_copro_fifoin_num == COPRO_FIFOIN_SIZE)
{ {
fatalerror("Copro FIFOIN overflow (at %08X)\n", device->safe_pc()); fatalerror("Copro FIFOIN overflow (at %08X)\n", device->safe_pc());
return;
} }
//printf("COPRO FIFOIN at %08X, %08X, %f\n", device->safe_pc(), data, *(float*)&data); //printf("COPRO FIFOIN at %08X, %08X, %f\n", device->safe_pc(), data, *(float*)&data);
@ -272,7 +270,6 @@ void model2_state::copro_fifoout_push(device_t *device, UINT32 data,UINT32 offse
if (m_copro_fifoout_num == COPRO_FIFOOUT_SIZE) if (m_copro_fifoout_num == COPRO_FIFOOUT_SIZE)
{ {
fatalerror("Copro FIFOOUT overflow (at %08X)\n", device->safe_pc()); fatalerror("Copro FIFOOUT overflow (at %08X)\n", device->safe_pc());
return;
} }
// logerror("COPRO FIFOOUT PUSH %08X, %f, %d\n", data, *(float*)&data,state->m_copro_fifoout_num); // logerror("COPRO FIFOOUT PUSH %08X, %f, %d\n", data, *(float*)&data,state->m_copro_fifoout_num);
@ -308,7 +305,6 @@ WRITE32_MEMBER(model2_state::copro_tgp_fifoout_push)
if (m_copro_fifoout_num == COPRO_FIFOOUT_SIZE) if (m_copro_fifoout_num == COPRO_FIFOOUT_SIZE)
{ {
fatalerror("Copro FIFOOUT overflow (at %08X)\n", m_tgp->pc()); fatalerror("Copro FIFOOUT overflow (at %08X)\n", m_tgp->pc());
return;
} }
// logerror("COPRO FIFOOUT PUSH %08X, %f, %d\n", data, *(float*)&data,m_copro_fifoout_num); // logerror("COPRO FIFOOUT PUSH %08X, %f, %d\n", data, *(float*)&data,m_copro_fifoout_num);

View File

@ -152,7 +152,6 @@ READ32_MEMBER(mpu5_state::mpu5_mem_r)
case 0xf0: case 0xf0:
{ {
return asic_r32(space, offset&3,mem_mask); return asic_r32(space, offset&3,mem_mask);
break;
} }
default: default:

View File

@ -793,9 +793,7 @@ RenderSlaveOutput( running_machine &machine, UINT16 data )
namcos21_state *state = machine.driver_data<namcos21_state>(); namcos21_state *state = machine.driver_data<namcos21_state>();
if( state->m_mpDspState->slaveOutputSize >= 4096 ) if( state->m_mpDspState->slaveOutputSize >= 4096 )
{ {
logerror( "FATAL ERROR: SLAVE OVERFLOW (0x%x)\n",state->m_mpDspState->slaveOutputBuffer[0] ); fatalerror( "FATAL ERROR: SLAVE OVERFLOW (0x%x)\n",state->m_mpDspState->slaveOutputBuffer[0] );
exit(1);
return;
} }
/* append word to slave output buffer */ /* append word to slave output buffer */

View File

@ -130,26 +130,20 @@ READ8_MEMBER(nbmj9195_state::mscoutm_cpu_portb_r)
{ {
case 0x01: case 0x01:
return ioport("KEY0")->read(); return ioport("KEY0")->read();
break;
case 0x02: case 0x02:
return ioport("KEY1")->read(); return ioport("KEY1")->read();
break;
case 0x04: case 0x04:
return ioport("KEY2")->read(); return ioport("KEY2")->read();
break;
case 0x08: case 0x08:
return ioport("KEY3")->read(); return ioport("KEY3")->read();
break;
case 0x10: case 0x10:
return ioport("KEY4")->read(); return ioport("KEY4")->read();
break;
default: default:
return (ioport("KEY0")->read() & ioport("KEY1")->read() & ioport("KEY2")->read() return (ioport("KEY0")->read() & ioport("KEY1")->read() & ioport("KEY2")->read()
& ioport("KEY3")->read() & ioport("KEY4")->read()); & ioport("KEY3")->read() & ioport("KEY4")->read());
break;
} }
// never executed
return 0xff; //return 0xff;
} }
READ8_MEMBER(nbmj9195_state::mscoutm_cpu_portc_r) READ8_MEMBER(nbmj9195_state::mscoutm_cpu_portc_r)
@ -159,25 +153,20 @@ READ8_MEMBER(nbmj9195_state::mscoutm_cpu_portc_r)
{ {
case 0x01: case 0x01:
return ioport("KEY5")->read(); return ioport("KEY5")->read();
break;
case 0x02: case 0x02:
return ioport("KEY6")->read(); return ioport("KEY6")->read();
break;
case 0x04: case 0x04:
return ioport("KEY7")->read(); return ioport("KEY7")->read();
break;
case 0x08: case 0x08:
return ioport("KEY8")->read(); return ioport("KEY8")->read();
break;
case 0x10: case 0x10:
return ioport("KEY9")->read(); return ioport("KEY9")->read();
break;
default: default:
return (ioport("KEY5")->read() & ioport("KEY6")->read() & ioport("KEY7")->read() return (ioport("KEY5")->read() & ioport("KEY6")->read() & ioport("KEY7")->read()
& ioport("KEY8")->read() & ioport("KEY9")->read()); & ioport("KEY8")->read() & ioport("KEY9")->read());
break;
} }
return 0xff; // never executed
//return 0xff;
} }
@ -213,24 +202,19 @@ READ8_MEMBER(nbmj9195_state::others_cpu_portb_r)
{ {
case 0x01: case 0x01:
return ioport("KEY0")->read(); return ioport("KEY0")->read();
break;
case 0x02: case 0x02:
return ioport("KEY1")->read(); return ioport("KEY1")->read();
break;
case 0x04: case 0x04:
return ioport("KEY2")->read(); return ioport("KEY2")->read();
break;
case 0x08: case 0x08:
return ioport("KEY3")->read(); return ioport("KEY3")->read();
break;
case 0x10: case 0x10:
return ((ioport("KEY4")->read() & 0x7f) | (nbmj9195_dipsw_r() << 7)); return ((ioport("KEY4")->read() & 0x7f) | (nbmj9195_dipsw_r() << 7));
break;
default: default:
return (ioport("KEY0")->read() & ioport("KEY1")->read() & ioport("KEY2")->read() & ioport("KEY3")->read() & (ioport("KEY4")->read() & 0x7f)); return (ioport("KEY0")->read() & ioport("KEY1")->read() & ioport("KEY2")->read() & ioport("KEY3")->read() & (ioport("KEY4")->read() & 0x7f));
break;
} }
return 0xff; // ever executed
//return 0xff;
} }
READ8_MEMBER(nbmj9195_state::others_cpu_portc_r) READ8_MEMBER(nbmj9195_state::others_cpu_portc_r)
@ -240,24 +224,19 @@ READ8_MEMBER(nbmj9195_state::others_cpu_portc_r)
{ {
case 0x01: case 0x01:
return ioport("KEY5")->read(); return ioport("KEY5")->read();
break;
case 0x02: case 0x02:
return ioport("KEY6")->read(); return ioport("KEY6")->read();
break;
case 0x04: case 0x04:
return ioport("KEY7")->read(); return ioport("KEY7")->read();
break;
case 0x08: case 0x08:
return ioport("KEY8")->read(); return ioport("KEY8")->read();
break;
case 0x10: case 0x10:
return ioport("KEY9")->read() & 0x7f; return ioport("KEY9")->read() & 0x7f;
break;
default: default:
return (ioport("KEY5")->read() & ioport("KEY6")->read() & ioport("KEY7")->read() & ioport("KEY8")->read() & (ioport("KEY9")->read() & 0x7f)); return (ioport("KEY5")->read() & ioport("KEY6")->read() & ioport("KEY7")->read() & ioport("KEY8")->read() & (ioport("KEY9")->read() & 0x7f));
break;
} }
return 0xff;; // never executed
//return 0xff;
} }

View File

@ -852,7 +852,6 @@ void segas24_state::irq_timer_start(int old_tmode)
} }
case 2: case 2:
fatalerror("egas24_state::irq_timer_start - case 2\n"); fatalerror("egas24_state::irq_timer_start - case 2\n");
break;
case 3: { case 3: {
int count = 0x1000 - irq_tval; int count = 0x1000 - irq_tval;
irq_timer->adjust(attotime::from_hz(TIMER_CLOCK)*count); irq_timer->adjust(attotime::from_hz(TIMER_CLOCK)*count);

View File

@ -957,7 +957,8 @@ READ32_MEMBER(seibuspi_state::ejsakura_keyboard_r)
default: default:
return ioport("SYSTEM")->read(); return ioport("SYSTEM")->read();
} }
return 0xffffffff; // never executed
//return 0xffffffff;
} }
WRITE32_MEMBER(seibuspi_state::ejsakura_input_select_w) WRITE32_MEMBER(seibuspi_state::ejsakura_input_select_w)

View File

@ -303,16 +303,13 @@ READ8_MEMBER(vega_state::extern_r)
{ {
return m_i8255->read( space, m_p2_data>>6); /* A6,A7 -> A0,A1 */ return m_i8255->read( space, m_p2_data>>6); /* A6,A7 -> A0,A1 */
} }
break;
case 1: /* 04-07 */ case 1: /* 04-07 */
{ {
/* AY 3-8910 */ /* AY 3-8910 */
m_ay8910->data_w(space, 0, offset); m_ay8910->data_w(space, 0, offset);
return 0xff;//mame_rand(space.machine); return 0xff;//mame_rand(space.machine);
} }
break;
case 2: /* 08-0b */ case 2: /* 08-0b */
{ {
@ -327,9 +324,7 @@ READ8_MEMBER(vega_state::extern_r)
//register r ? //register r ?
return m_ins8154->ins8154_r(space,offset&0x7f); return m_ins8154->ins8154_r(space,offset&0x7f);
} }
} }
break;
#if 0 #if 0
case 3: /* 0c-0f */ case 3: /* 0c-0f */
{ {

View File

@ -1521,7 +1521,8 @@ static UINT32 voodoo3_pci_r(device_t *busdevice, device_t *device, int function,
default: default:
fatalerror("voodoo3_pci_r: %08X at %08X\n", reg, device->machine().device("maincpu")->safe_pc()); fatalerror("voodoo3_pci_r: %08X at %08X\n", reg, device->machine().device("maincpu")->safe_pc());
} }
return 0; // never executed
//return 0;
} }
static void voodoo3_pci_w(device_t *busdevice, device_t *device, int function, int reg, UINT32 data, UINT32 mem_mask) static void voodoo3_pci_w(device_t *busdevice, device_t *device, int function, int reg, UINT32 data, UINT32 mem_mask)
@ -1744,7 +1745,7 @@ void viper_state::DS2430_w(int bit)
{ {
case 0x33: ds2430_state = DS2430_STATE_READ_ROM; break; case 0x33: ds2430_state = DS2430_STATE_READ_ROM; break;
case 0xcc: ds2430_state = DS2430_STATE_MEM_FUNCTION; break; case 0xcc: ds2430_state = DS2430_STATE_MEM_FUNCTION; break;
default: fatalerror("DS2430_w: unimplemented rom command %02X\n", ds2430_cmd); break; default: fatalerror("DS2430_w: unimplemented rom command %02X\n", ds2430_cmd);
} }
} }
break; break;
@ -1758,7 +1759,7 @@ void viper_state::DS2430_w(int bit)
switch (ds2430_cmd) switch (ds2430_cmd)
{ {
case 0xf0: ds2430_state = DS2430_STATE_READ_MEM_ADDRESS; break; case 0xf0: ds2430_state = DS2430_STATE_READ_MEM_ADDRESS; break;
default: fatalerror("DS2430_w: unimplemented mem function %02X\n", ds2430_cmd); break; default: fatalerror("DS2430_w: unimplemented mem function %02X\n", ds2430_cmd);
} }
} }
break; break;

View File

@ -754,7 +754,6 @@ READ8_MEMBER(balsente_state::balsente_counter_8253_r)
m_counter[which].readbyte = 0; m_counter[which].readbyte = 0;
return (m_counter[which].count >> 8) & 0xff; return (m_counter[which].count >> 8) & 0xff;
} }
break;
} }
return 0; return 0;
} }

View File

@ -1144,7 +1144,8 @@ READ16_MEMBER( harddriv_state::hdds3_sdsp_control_r )
return m_ds3sdsp_regs[offset]; return m_ds3sdsp_regs[offset];
} }
return 0xff; // never executed
//return 0xff;
} }
@ -1209,7 +1210,8 @@ READ16_MEMBER( harddriv_state::hdds3_xdsp_control_r )
return m_ds3xdsp_regs[offset]; return m_ds3xdsp_regs[offset];
} }
return 0xff; // never executed
//return 0xff;
} }

View File

@ -290,9 +290,6 @@ READ16_MEMBER(igs025_device::killbld_igs025_prot_r)
default: // >= 5 default: // >= 5
return 0x3f00 | BITSWAP8(m_kb_prot_hold, 5, 2, 9, 7, 10, 13, 12, 15); return 0x3f00 | BITSWAP8(m_kb_prot_hold, 5, 2, 9, 7, 10, 13, 12, 15);
} }
return 0x3f00;
//return 0;
} }
case 0x40: case 0x40:

View File

@ -120,7 +120,6 @@ READ16_MEMBER(kaneko_hit_device::kaneko_hit_r)
default: default:
fatalerror("kaneko_hit_r called, but m_hittype not set\n"); fatalerror("kaneko_hit_r called, but m_hittype not set\n");
return 0;
} }
} }
@ -134,7 +133,6 @@ WRITE16_MEMBER(kaneko_hit_device::kaneko_hit_w)
default: default:
fatalerror("kaneko_hit_r called, but m_hittype not set\n"); fatalerror("kaneko_hit_r called, but m_hittype not set\n");
break;
} }
} }

View File

@ -2078,7 +2078,6 @@ static void copro_fifoin_push(address_space &space, UINT32 data)
if (state->m_copro_fifoin_num == FIFO_SIZE) if (state->m_copro_fifoin_num == FIFO_SIZE)
{ {
fatalerror("Copro FIFOIN overflow (at %08X)\n", space.device().safe_pc()); fatalerror("Copro FIFOIN overflow (at %08X)\n", space.device().safe_pc());
return;
} }
state->m_copro_fifoin_data[state->m_copro_fifoin_wpos++] = data; state->m_copro_fifoin_data[state->m_copro_fifoin_wpos++] = data;
@ -2123,7 +2122,6 @@ WRITE32_MEMBER(model1_state::copro_fifoout_push)
if (m_copro_fifoout_num == FIFO_SIZE) if (m_copro_fifoout_num == FIFO_SIZE)
{ {
fatalerror("Copro FIFOOUT overflow (at %08X)\n", m_tgp->pc()); fatalerror("Copro FIFOOUT overflow (at %08X)\n", m_tgp->pc());
return;
} }
m_copro_fifoout_data[m_copro_fifoout_wpos++] = data; m_copro_fifoout_data[m_copro_fifoout_wpos++] = data;

View File

@ -315,7 +315,6 @@ static UINT8 rtc_get_reg(running_machine &machine, int reg)
default: default:
fatalerror("RTC-72421: Unknown reg %02X\n", reg); fatalerror("RTC-72421: Unknown reg %02X\n", reg);
return 0;
} }
} }

View File

@ -346,7 +346,6 @@ READ16_MEMBER( namcos2_state::namcos2_68k_key_r )
// case 3: popmessage("blah %08x",space.device().safe_pc()); // case 3: popmessage("blah %08x",space.device().safe_pc());
default: return space.machine().rand(); default: return space.machine().rand();
} }
break;
case NAMCOS2_SUPER_WSTADIUM_92: case NAMCOS2_SUPER_WSTADIUM_92:
switch(offset) switch(offset)

View File

@ -350,7 +350,6 @@ READ8_MEMBER( nb1413m3_device::inputport1_r )
case 0x04: return 0xff; case 0x04: return 0xff;
default: return 0xff; default: return 0xff;
} }
break;
case NB1413M3_MSJIKEN: case NB1413M3_MSJIKEN:
case NB1413M3_TELMAHJN: case NB1413M3_TELMAHJN:
if (root.ioport("DSWA")->read() & 0x80) if (root.ioport("DSWA")->read() & 0x80)
@ -367,7 +366,6 @@ READ8_MEMBER( nb1413m3_device::inputport1_r )
} }
} }
else return root.ioport("JAMMA2")->read(); else return root.ioport("JAMMA2")->read();
break;
case NB1413M3_PAIRSNB: case NB1413M3_PAIRSNB:
case NB1413M3_PAIRSTEN: case NB1413M3_PAIRSTEN:
case NB1413M3_OHPAIPEE: case NB1413M3_OHPAIPEE:
@ -384,7 +382,6 @@ READ8_MEMBER( nb1413m3_device::inputport1_r )
default: return (root.ioport("KEY0")->read() & root.ioport("KEY1")->read() & root.ioport("KEY2")->read() default: return (root.ioport("KEY0")->read() & root.ioport("KEY1")->read() & root.ioport("KEY2")->read()
& root.ioport("KEY3")->read() & root.ioport("KEY4")->read()); & root.ioport("KEY3")->read() & root.ioport("KEY4")->read());
} }
break;
} }
} }
@ -402,7 +399,6 @@ READ8_MEMBER( nb1413m3_device::inputport2_r )
case 0x04: return root.ioport("IN2")->read(); case 0x04: return root.ioport("IN2")->read();
default: return 0xff; default: return 0xff;
} }
break;
case NB1413M3_MSJIKEN: case NB1413M3_MSJIKEN:
case NB1413M3_TELMAHJN: case NB1413M3_TELMAHJN:
if (root.ioport("DSWA")->read() & 0x80) if (root.ioport("DSWA")->read() & 0x80)
@ -419,7 +415,6 @@ READ8_MEMBER( nb1413m3_device::inputport2_r )
} }
} }
else return root.ioport("JAMMA1")->read(); else return root.ioport("JAMMA1")->read();
break;
case NB1413M3_PAIRSNB: case NB1413M3_PAIRSNB:
case NB1413M3_PAIRSTEN: case NB1413M3_PAIRSTEN:
case NB1413M3_OHPAIPEE: case NB1413M3_OHPAIPEE:
@ -436,7 +431,6 @@ READ8_MEMBER( nb1413m3_device::inputport2_r )
default: return (root.ioport("KEY5")->read() & root.ioport("KEY6")->read() & root.ioport("KEY7")->read() default: return (root.ioport("KEY5")->read() & root.ioport("KEY6")->read() & root.ioport("KEY7")->read()
& root.ioport("KEY8")->read() & root.ioport("KEY9")->read()); & root.ioport("KEY8")->read() & root.ioport("KEY9")->read());
} }
break;
} }
} }

View File

@ -493,7 +493,8 @@ UINT32 sss_prot_read_callback( address_space &space, int protaddr, UINT32 key )
return res; return res;
} }
return 0; // never executed
//return 0;
} }
UINT32 astrass_prot_read_callback( address_space &space, int protaddr, UINT32 key ) UINT32 astrass_prot_read_callback( address_space &space, int protaddr, UINT32 key )
@ -537,7 +538,8 @@ UINT32 elandore_prot_read_callback( address_space &space, int protaddr, UINT32 k
return res; return res;
} }
return 0; // never executed
//return 0;
} }
UINT32 ffreveng_prot_read_callback( address_space &space, int protaddr, UINT32 key ) UINT32 ffreveng_prot_read_callback( address_space &space, int protaddr, UINT32 key )

View File

@ -645,7 +645,7 @@ READ8_MEMBER(williams2_state::tshoot_input_port_0_3_r)
return (data & 0xc0) | gun; return (data & 0xc0) | gun;
// FIXME: this code is never reached // FIXME: this code is never reached
return 0; //return 0;
} }

View File

@ -252,7 +252,7 @@ void k001604_device::draw_back_layer( bitmap_rgb32 &bitmap, const rectangle &cli
case 0: window_xmask = (128 * tile_size) - 1; break; case 0: window_xmask = (128 * tile_size) - 1; break;
case 2: window_xmask = (64 * tile_size) - 1; break; case 2: window_xmask = (64 * tile_size) - 1; break;
case 3: window_xmask = (32 * tile_size) - 1; break; case 3: window_xmask = (32 * tile_size) - 1; break;
default: fatalerror("k001604_draw_back_layer(): layer_size %d\n", layer_size); break; default: fatalerror("k001604_draw_back_layer(): layer_size %d\n", layer_size);
} }
window_ymask = pixmap.height() - 1; window_ymask = pixmap.height() - 1;

View File

@ -279,8 +279,6 @@ READ8_MEMBER( k051960_device::k051937_r )
//logerror("%04x: read unknown 051937 address %x\n", device->cpu->safe_pc(), offset); //logerror("%04x: read unknown 051937 address %x\n", device->cpu->safe_pc(), offset);
return 0; return 0;
} }
return 0;
} }
WRITE8_MEMBER( k051960_device::k051937_w ) WRITE8_MEMBER( k051960_device::k051937_w )

View File

@ -109,7 +109,6 @@ WRITE8_MEMBER(leland_state::leland_scroll_w)
default: default:
fatalerror("Unexpected leland_gfx_port_w\n"); fatalerror("Unexpected leland_gfx_port_w\n");
break;
} }
} }

View File

@ -218,9 +218,6 @@ inline UINT8 metro_state::get_tile_pix( UINT16 code, UINT8 x, UINT8 y, int big,
else else
return 0; return 0;
} }
// shouldn't get here..
return 0;
} }

View File

@ -1248,7 +1248,6 @@ static void model2_3d_push( raster_state *raster, UINT32 input )
{ {
fatalerror( "SEGA 3D: Unknown rasterizer command %08x\n", raster->cur_command ); fatalerror( "SEGA 3D: Unknown rasterizer command %08x\n", raster->cur_command );
} }
break;
} }
} }
else else

View File

@ -689,7 +689,6 @@ void model3_state::real3d_upload_texture(UINT32 header, UINT32 *data)
break; break;
default: default:
fatalerror("Unknown texture type: %02X\n", header >> 24); fatalerror("Unknown texture type: %02X\n", header >> 24);
break;
} }
} }

View File

@ -703,7 +703,6 @@ void namcos22_renderer::render_scene_nodes(screen_device &screen, bitmap_rgb32 &
default: default:
fatalerror("invalid node->type\n"); fatalerror("invalid node->type\n");
break;
} }
free_scenenode(node); free_scenenode(node);
node = next; node = next;

View File

@ -21,8 +21,6 @@ int nycaptor_state::nycaptor_spot( )
return m_sharedram[0x299] ? m_sharedram[0x298] : 0; return m_sharedram[0x299] ? m_sharedram[0x298] : 0;
else else
return 0; return 0;
return 0;
} }
TILE_GET_INFO_MEMBER(nycaptor_state::get_tile_info) TILE_GET_INFO_MEMBER(nycaptor_state::get_tile_info)

View File

@ -588,8 +588,6 @@ WRITE8_MEMBER( scn2674_device::mpu4_vid_scn2674_w )
m_scn2674_spl1 = (data & 0x40); m_scn2674_spl1 = (data & 0x40);
m_scn2674_spl2 = (data & 0x80); m_scn2674_spl2 = (data & 0x80);
break; break;
break;
} }
} }

View File

@ -228,7 +228,6 @@ READ8_MEMBER(thief_state::thief_coprocessor_r){
int result = 0xc000 | (addr>>3); int result = 0xc000 | (addr>>3);
return (offset==0x03)?(result>>8):(result&0xff); return (offset==0x03)?(result>>8):(result&0xff);
} }
break;
case GFX_PORT: case GFX_PORT:
{ {
@ -255,7 +254,6 @@ READ8_MEMBER(thief_state::thief_coprocessor_r){
return 0x80>>dx; // no flip return 0x80>>dx; // no flip
} }
} }
break;
} }
return thief_coprocessor.param[offset]; return thief_coprocessor.param[offset];

View File

@ -1050,7 +1050,6 @@ READ16_MEMBER( ygv608_device::read )
} }
return (data << 8); return (data << 8);
} }
break;
case 0x01: /* P#1 - sprite data port */ case 0x01: /* P#1 - sprite data port */
data = m_sprite_attribute_table.b[m_regs.s.saa]; data = m_sprite_attribute_table.b[m_regs.s.saa];
@ -1096,7 +1095,6 @@ READ16_MEMBER( ygv608_device::read )
} }
return (data << 8); return (data << 8);
} }
break;
case 0x05: case 0x05:
break; break;