trunk/src/mame/audio/8080bw.c
| r19145 | r19146 | |
| 66 | 66 | if (rising_bits & 0x08) m_samples->start(4, 6); /* FLEET */ |
| 67 | 67 | if (rising_bits & 0x10) m_samples->start(3, 7); /* SAUCER HIT */ |
| 68 | 68 | |
| 69 | | m_c8080bw_flip_screen = data & 0x20; |
| 69 | m_c8080bw_flip_screen = BIT(data, 5) & BIT(ioport(CABINET_PORT_TAG)->read(), 0); |
| 70 | 70 | |
| 71 | 71 | m_port_2_last_extra = data; |
| 72 | 72 | } |
| r19145 | r19146 | |
| 153 | 153 | if (rising_bits & 0x10) m_samples->start(3, 6); /* Shooting Star and Rescue Ship sounds */ |
| 154 | 154 | if ((~data & 0x10) && (m_port_2_last_extra & 0x10)) m_samples->stop(3); /* This makes the rescue ship sound beep on and off */ |
| 155 | 155 | |
| 156 | | m_c8080bw_flip_screen = data & 0x20; |
| 156 | m_c8080bw_flip_screen = BIT(data, 5) & BIT(ioport(CABINET_PORT_TAG)->read(), 0); |
| 157 | 157 | |
| 158 | 158 | m_port_2_last_extra = data; |
| 159 | 159 | } |
| r19145 | r19146 | |
| 255 | 255 | if (data & 0x04) m_samples->start(0, 4); /* Plane is dropping new balloons at start of level */ |
| 256 | 256 | if (rising_bits & 0x10) m_samples->start(2, 2); /* Balloon hit and bomb drops */ |
| 257 | 257 | |
| 258 | | m_c8080bw_flip_screen = data & 0x20; |
| 258 | m_c8080bw_flip_screen = BIT(data, 5) & BIT(ioport(CABINET_PORT_TAG)->read(), 0); |
| 259 | 259 | |
| 260 | 260 | m_port_2_last_extra = data; |
| 261 | 261 | } |
| r19145 | r19146 | |
| 683 | 683 | |
| 684 | 684 | coin_lockout_global_w(machine(), data & 0x04); /* SX8 */ |
| 685 | 685 | |
| 686 | | m_c8080bw_flip_screen = data & 0x20; /* SX11 */ |
| 686 | m_c8080bw_flip_screen = BIT(data, 5) & BIT(ioport(CABINET_PORT_TAG)->read(), 0); /* SX11 */ |
| 687 | 687 | |
| 688 | 688 | /* 0x01 - SX6 - Plane Down */ |
| 689 | 689 | discrete_sound_w(m_discrete, space, POLARIS_SX6_EN, data & 0x01); |
| r19145 | r19146 | |
| 1146 | 1146 | |
| 1147 | 1147 | machine().sound().system_enable(data & 0x10); |
| 1148 | 1148 | |
| 1149 | | m_c8080bw_flip_screen = data & 0x20; |
| 1149 | m_c8080bw_flip_screen = BIT(data, 5) & BIT(ioport(CABINET_PORT_TAG)->read(), 0); |
| 1150 | 1150 | } |
| 1151 | 1151 | |
| 1152 | 1152 | |