diff options
author | Zsolt Vasvari <zsoltvas@mamedev.org> | 2008-01-19 07:13:31 +0000 |
---|---|---|
committer | Zsolt Vasvari <zsoltvas@mamedev.org> | 2008-01-19 07:13:31 +0000 |
commit | 19fab2e1eff2aea712e40e8854a904c26aa5fd81 (patch) | |
tree | 9e6351f6090fcbcd0b030cd40c69050875ca0826 /src/mame/machine/atarifb.c | |
parent | ac396dedd73b90d05c33dcbc73c12d9362020d94 (diff) |
Converted to tilemaps
Diffstat (limited to 'src/mame/machine/atarifb.c')
-rw-r--r-- | src/mame/machine/atarifb.c | 96 |
1 files changed, 64 insertions, 32 deletions
diff --git a/src/mame/machine/atarifb.c b/src/mame/machine/atarifb.c index 91daec2c4a3..ecb0b2493aa 100644 --- a/src/mame/machine/atarifb.c +++ b/src/mame/machine/atarifb.c @@ -23,38 +23,65 @@ WRITE8_HANDLER( atarifb_out1_w ) discrete_sound_w(ATARIFB_HIT_EN, data & 0x02); // Hit discrete_sound_w(ATARIFB_ATTRACT_EN, data & 0x10); // Attract discrete_sound_w(ATARIFB_NOISE_EN, data & 0x04); // Noise Enable / Kicker +} - if (GAME_IS_SOCCER) - { - /* bit 0 = whistle */ - /* bit 1 = hit */ - /* bit 2 = kicker */ - /* bit 3 = unused */ - /* bit 4 = 2/4 Player LED */ // Say what? - /* bit 5-6 = trackball CTRL bits */ - /* bit 7 = Rule LED */ -// set_led_status(0,data & 0x10); // !!!!!!!!!! Is this correct???? - set_led_status(1,data & 0x80); - } - if (GAME_IS_FOOTBALL4) - coin_counter_w (1, data & 0x80); +WRITE8_HANDLER( atarifb4_out1_w ) +{ + CTRLD = data; + + discrete_sound_w(ATARIFB_WHISTLE_EN, data & 0x01); // Whistle + discrete_sound_w(ATARIFB_HIT_EN, data & 0x02); // Hit + discrete_sound_w(ATARIFB_ATTRACT_EN, data & 0x10); // Attract + discrete_sound_w(ATARIFB_NOISE_EN, data & 0x04); // Noise Enable / Kicker + + coin_counter_w (1, data & 0x80); +} + - if (GAME_IS_BASEBALL) +WRITE8_HANDLER( abaseb_out1_w ) +{ + CTRLD = data; + + discrete_sound_w(ATARIFB_WHISTLE_EN, data & 0x01); // Whistle + discrete_sound_w(ATARIFB_HIT_EN, data & 0x02); // Hit + discrete_sound_w(ATARIFB_ATTRACT_EN, data & 0x10); // Attract + discrete_sound_w(ATARIFB_NOISE_EN, data & 0x04); // Noise Enable / Kicker + + if (data & 0x80) { - if (data & 0x80) - { - /* Invert video */ - palette_set_color(Machine,1,MAKE_RGB(0x00,0x00,0x00)); /* black */ - palette_set_color(Machine,0,MAKE_RGB(0xff,0xff,0xff)); /* white */ - } - else - { - /* Regular video */ - palette_set_color(Machine,0,MAKE_RGB(0x00,0x00,0x00)); /* black */ - palette_set_color(Machine,1,MAKE_RGB(0xff,0xff,0xff)); /* white */ - } + /* Invert video */ + palette_set_color(Machine,1,MAKE_RGB(0x00,0x00,0x00)); /* black */ + palette_set_color(Machine,0,MAKE_RGB(0xff,0xff,0xff)); /* white */ } + else + { + /* Regular video */ + palette_set_color(Machine,0,MAKE_RGB(0x00,0x00,0x00)); /* black */ + palette_set_color(Machine,1,MAKE_RGB(0xff,0xff,0xff)); /* white */ + } +} + + +WRITE8_HANDLER( soccer_out1_w ) +{ + CTRLD = data; + + /* bit 0 = whistle */ + /* bit 1 = hit */ + /* bit 2 = kicker */ + /* bit 3 = unused */ + /* bit 4 = 2/4 Player LED */ // Say what? + /* bit 5-6 = trackball CTRL bits */ + /* bit 7 = Rule LED */ + + discrete_sound_w(ATARIFB_WHISTLE_EN, data & 0x01); // Whistle + discrete_sound_w(ATARIFB_HIT_EN, data & 0x02); // Hit + discrete_sound_w(ATARIFB_ATTRACT_EN, data & 0x10); // Attract + discrete_sound_w(ATARIFB_NOISE_EN, data & 0x04); // Noise Enable / Kicker + +// set_led_status(0,data & 0x10); // !!!!!!!!!! Is this correct???? + set_led_status(1,data & 0x80); } @@ -63,15 +90,20 @@ WRITE8_HANDLER( atarifb_out2_w ) discrete_sound_w(ATARIFB_CROWD_DATA, data & 0x0f); // Crowd coin_counter_w (0, data & 0x10); +} - if (GAME_IS_SOCCER) - { - coin_counter_w (1, data & 0x20); - coin_counter_w (2, data & 0x40); - } + +WRITE8_HANDLER( soccer_out2_w ) +{ + discrete_sound_w(ATARIFB_CROWD_DATA, data & 0x0f); // Crowd + + coin_counter_w (0, data & 0x10); + coin_counter_w (1, data & 0x20); + coin_counter_w (2, data & 0x40); } + /************************************* * * LED control |