mirror of
https://github.com/holub/mame
synced 2025-05-22 13:48:55 +03:00
fix mame-specific unreachable code, JWallace can fix the bfm one
This commit is contained in:
parent
815012961e
commit
78aca3a518
@ -972,7 +972,7 @@ WRITE8_MEMBER(mpu4_state::pia_ic5_porta_w)
|
|||||||
of making the game fair, short of simulating the physics of a bouncing ball ;)*/
|
of making the game fair, short of simulating the physics of a bouncing ball ;)*/
|
||||||
if (data & 0x0f)
|
if (data & 0x0f)
|
||||||
{
|
{
|
||||||
switch ((machine().rand()>>5) & 0x2)
|
switch ((machine().rand()>>5) % 0x3)
|
||||||
{
|
{
|
||||||
case 0x00: //Top row
|
case 0x00: //Top row
|
||||||
{
|
{
|
||||||
|
@ -1636,7 +1636,7 @@ static READ16_HANDLER( aceattac_custom_io_r )
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 0x3000/2:
|
case 0x3000/2:
|
||||||
switch (offset & 3)
|
switch (offset & 7)
|
||||||
{
|
{
|
||||||
case 0: return state->ioport("HANDX1")->read();
|
case 0: return state->ioport("HANDX1")->read();
|
||||||
case 1: return state->ioport("TRACKX1")->read();
|
case 1: return state->ioport("TRACKX1")->read();
|
||||||
|
@ -191,7 +191,7 @@ void bfm_bd1_t::update_display()
|
|||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
void bfm_bd1_t::blank(int data)
|
void bfm_bd1_t::blank(int data)
|
||||||
{
|
{
|
||||||
switch ( data & 0x04 )
|
switch ( data & 0x04 ) // TODO: wrong case values???
|
||||||
{
|
{
|
||||||
case 0x00: // clear blanking
|
case 0x00: // clear blanking
|
||||||
{
|
{
|
||||||
@ -235,7 +235,7 @@ void bfm_bd1_t::blank(int data)
|
|||||||
{
|
{
|
||||||
for (int i = 0; i < 15; i++)
|
for (int i = 0; i < 15; i++)
|
||||||
{
|
{
|
||||||
m_attrs[i] = AT_BLANK;
|
m_attrs[i] = AT_BLANK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -1324,7 +1324,7 @@ static void tgp_render(running_machine &machine, bitmap_rgb32 &bitmap, const rec
|
|||||||
list += 6;
|
list += 6;
|
||||||
break;
|
break;
|
||||||
case 0xf:
|
case 0xf:
|
||||||
case -1:
|
//case -1:
|
||||||
goto end;
|
goto end;
|
||||||
default:
|
default:
|
||||||
LOG_TGP(("VIDEO: unknown type %d\n", type));
|
LOG_TGP(("VIDEO: unknown type %d\n", type));
|
||||||
|
Loading…
Reference in New Issue
Block a user