src/mess/drivers/nakajies.c
| r13282 | r13283 | |
| 159 | 159 | 0040 - unknown |
| 160 | 160 | 0xff written during boot sequence |
| 161 | 161 | |
| 162 | Sounds related? |
| 163 | On boot: 50 = 98, 51 = 06, 52 = 7f |
| 164 | 52 = ff |
| 165 | 50 - 26, 51 = 01, 52 = 7f |
| 166 | 52 = ff |
| 167 | (mem check) |
| 168 | 50 = 98, 51 = 06, 52 = 7f |
| 169 | 52 = ff |
| 170 | 50 = 74, 51 = 04, 52 = 7f |
| 171 | 52 = ff |
| 172 | 50 = 98, 51 = 06, 52 = 7f |
| 173 | 52 = ff |
| 174 | (menu) |
| 175 | (type 1 - medium frequency sound ) |
| 176 | 50 = 5d, 51 = 01, 52 = 7f |
| 177 | 52 = ff |
| 178 | 52 = ff |
| 179 | 52 = ff |
| 180 | 50 = 00, 51 = 01, 52 = 7f |
| 181 | 52 = ff |
| 182 | (type 2 - simple lower sound) |
| 183 | 50 = ba, 51 = 02, 52 = 7f |
| 184 | 52 = ff |
| 185 | (type 3 - highest frequency sound) |
| 186 | 50 = 26, 51 = 01, 52 = 7f |
| 187 | 52 = ff |
| 188 | 50 = 06, 51 = 01, 52 = 7f |
| 189 | 52 = ff |
| 190 | 50 = e9, 51 = 00, 52 = 7f |
| 191 | 52 = ff |
| 192 | 50 = dc, 51 = 00, 52 = 7f |
| 193 | 52 = ff |
| 194 | 50 = c4, 51 = 00, 52 = 7f |
| 195 | 52 = ff |
| 162 | 196 | 0050 - counter low? |
| 163 | 197 | 0051 - counter high? |
| 164 | 198 | 0052 - counter enable/disable? |
| r13282 | r13283 | |
| 243 | 277 | #include "rendlay.h" |
| 244 | 278 | |
| 245 | 279 | |
| 280 | #define LOG 0 |
| 281 | |
| 282 | |
| 246 | 283 | class nakajies_state : public driver_device |
| 247 | 284 | { |
| 248 | 285 | public: |
| r13282 | r13283 | |
| 371 | 408 | UINT8 irq = m_irq_active; // & m_irq_enabled; |
| 372 | 409 | UINT8 vector = 0xff; |
| 373 | 410 | |
| 374 | | logerror("nakajies_update_irqs: irq_enabled = %02x, irq_active = %02x\n", m_irq_enabled, m_irq_active ); |
| 411 | if (LOG) |
| 412 | logerror("nakajies_update_irqs: irq_enabled = %02x, irq_active = %02x\n", m_irq_enabled, m_irq_active ); |
| 375 | 413 | |
| 376 | 414 | /* Assuming irq 0xFF has the highest priority and 0xF8 the lowest */ |
| 377 | 415 | while( vector >= 0xf8 && ! ( irq & 0x01 ) ) |