trunk/src/mess/drivers/ymmu100.c
| r243807 | r243808 | |
| 276 | 276 | { |
| 277 | 277 | int chan = (offset >> 6) & 0x3f; |
| 278 | 278 | int slot = offset & 0x3f; |
| 279 | if(slot == 0x38 && (data == 0xffff || data == 0xff00 || data == 0x00ff)) |
| 280 | return; |
| 281 | if(slot == 0x39 && (data == 0x08ff || data == 0x20ff || data == 0xffff)) |
| 282 | return; |
| 283 | if(slot == 0x3a && data == 0xffff) |
| 284 | return; |
| 279 | 285 | logerror("snd_w %02x.%02x, %04x (%06x)\n", chan, slot, data, m_maincpu->pc()); |
| 280 | 286 | } |
| 281 | 287 | |
| 282 | 288 | READ16_MEMBER(mu100_state::adc0_r) |
| 283 | 289 | { |
| 284 | | logerror("adc0_r\n"); |
| 290 | // logerror("adc0_r\n"); |
| 285 | 291 | return 0; |
| 286 | 292 | } |
| 287 | 293 | |
| 288 | 294 | READ16_MEMBER(mu100_state::adc2_r) |
| 289 | 295 | { |
| 290 | | logerror("adc2_r\n"); |
| 296 | // logerror("adc2_r\n"); |
| 291 | 297 | return 0; |
| 292 | 298 | } |
| 293 | 299 | |
| 294 | 300 | // Put the host switch to pure midi |
| 295 | 301 | READ16_MEMBER(mu100_state::adc4_r) |
| 296 | 302 | { |
| 297 | | return 0; |
| 303 | return 0x3ff; |
| 298 | 304 | } |
| 299 | 305 | |
| 300 | 306 | // Battery level |
| 301 | 307 | READ16_MEMBER(mu100_state::adc6_r) |
| 302 | 308 | { |
| 303 | | logerror("adc6_r\n"); |
| 309 | // logerror("adc6_r\n"); |
| 304 | 310 | return 0x3ff; |
| 305 | 311 | } |
| 306 | 312 | |
| r243807 | r243808 | |
| 379 | 385 | |
| 380 | 386 | READ16_MEMBER(mu100_state::p6_r) |
| 381 | 387 | { |
| 382 | | logerror("plug in detect read\n"); |
| 388 | // logerror("plug in detect read\n"); |
| 383 | 389 | return 0x00; |
| 384 | 390 | } |
| 385 | 391 | |