trunk/src/mame/machine/3do.c
| r20178 | r20179 | |
| 458 | 458 | |
| 459 | 459 | |
| 460 | 460 | WRITE32_MEMBER(_3do_state::_3do_madam_w){ |
| 461 | | logerror( "%08X: MADAM write offset = %08X, data = %08X, mask = %08X\n", machine().device("maincpu")->safe_pc(), offset*4, data, mem_mask ); |
| 462 | 461 | |
| 462 | if(offset == 0) |
| 463 | { |
| 464 | if(data == 0x0a) |
| 465 | logerror( "%08X: MADAM write offset = %08X, data = %08X (\\n), mask = %08X\n", machine().device("maincpu")->safe_pc(), offset*4, data, mem_mask ); |
| 466 | else |
| 467 | logerror( "%08X: MADAM write offset = %08X, data = %08X (%c), mask = %08X\n", machine().device("maincpu")->safe_pc(), offset*4, data, data, mem_mask ); |
| 468 | } |
| 469 | else |
| 470 | logerror( "%08X: MADAM write offset = %08X, data = %08X, mask = %08X\n", machine().device("maincpu")->safe_pc(), offset*4, data, mem_mask ); |
| 471 | |
| 463 | 472 | switch( offset ) { |
| 464 | 473 | case 0x0000/4: |
| 465 | 474 | if(data == 0x0a) |
| r20178 | r20179 | |
| 652 | 661 | READ32_MEMBER(_3do_state::_3do_clio_r) |
| 653 | 662 | { |
| 654 | 663 | if (!space.debugger_access()) |
| 655 | | if(offset != 0x40/4 && offset != 0x44/4 && offset != 0x48/4 && offset != 0x4c/4) |
| 656 | | logerror( "%08X: CLIO read offset = %08X\n", machine().device("maincpu")->safe_pc(), offset * 4 ); |
| 664 | { |
| 665 | if(offset != 0x200/4 && offset != 0x40/4 && offset != 0x44/4 && offset != 0x48/4 && offset != 0x4c/4 && |
| 666 | offset != 0x118/4 && offset != 0x11c/4) |
| 667 | logerror( "%08X: CLIO read offset = %08X\n", machine().device("maincpu")->safe_pc(), offset * 4 ); |
| 668 | } |
| 657 | 669 | |
| 658 | 670 | switch( offset ) |
| 659 | 671 | { |
| r20178 | r20179 | |
| 757 | 769 | |
| 758 | 770 | WRITE32_MEMBER(_3do_state::_3do_clio_w) |
| 759 | 771 | { |
| 760 | | if(offset != 0x40/4 && offset != 0x44/4 && offset != 0x48/4 && offset != 0x4c/4) |
| 772 | if(offset != 0x200/4 && offset != 0x40/4 && offset != 0x44/4 && offset != 0x48/4 && offset != 0x4c/4 && |
| 773 | offset != 0x118/4 && offset != 0x11c/4) |
| 761 | 774 | logerror( "%08X: CLIO write offset = %08X, data = %08X, mask = %08X\n", machine().device("maincpu")->safe_pc(), offset*4, data, mem_mask ); |
| 762 | 775 | |
| 763 | 776 | switch( offset ) |
| r20178 | r20179 | |
| 928 | 941 | m_clio.poll = ( m_clio.poll & 0xf8 ) | ( data & 0x07 ); |
| 929 | 942 | break; |
| 930 | 943 | |
| 944 | // DSPP operation |
| 945 | /* |
| 946 | ---- x--- DSPPError |
| 947 | ---- -x-- DSPPReset |
| 948 | ---- --x- DSPPSleep |
| 949 | ---- ---x DSPPGW |
| 950 | (Red revision) |
| 951 | ---x ---- DSPPError |
| 952 | ---- x--- DSPPReset |
| 953 | ---- -x-- DSPPSleep |
| 954 | ---- --x- DSPPGW-Step |
| 955 | ---- ---x DSPPGW |
| 956 | */ |
| 957 | case 0x17fc/4: |
| 958 | /* TODO: DSPP enabled just before enabling DSPP irq! */ |
| 959 | //printf("%08x\n",data); |
| 960 | break; |
| 961 | |
| 931 | 962 | case 0xc000/4: |
| 932 | 963 | case 0xc004/4: |
| 933 | 964 | case 0xc00c/4: |