src/mess/machine/isa_mpu401.c
| r14126 | r14127 | |
| 9 | 9 | |
| 10 | 10 | #include "emu.h" |
| 11 | 11 | #include "isa_mpu401.h" |
| 12 | #include "machine/pic8259.h" |
| 12 | 13 | |
| 14 | /* |
| 15 | DIP-SWs |
| 16 | 1-2-3-4 |
| 17 | 0x200 |
| 18 | 1 0x210 |
| 19 | 1 0x220 |
| 20 | ... |
| 21 | 1 1 1 0x330 (default) |
| 22 | ... |
| 23 | 1 1 1 1 0x370 |
| 13 | 24 | |
| 25 | 5-6-7-8 |
| 26 | 1 irq2 (default) |
| 27 | 1 irq3 |
| 28 | 1 irq5 |
| 29 | 1 irq7 |
| 30 | */ |
| 14 | 31 | |
| 15 | 32 | READ8_MEMBER( isa8_mpu401_device::mpu401_r ) |
| 16 | 33 | { |
| 17 | | return 0xff; |
| 34 | UINT8 res; |
| 35 | |
| 36 | if(offset == 0) // data |
| 37 | { |
| 38 | res = 0xff; |
| 39 | } |
| 40 | else // status |
| 41 | { |
| 42 | res = 0x3f | 0x80; // bit 7 queue empty (DSR), bit 6 DRR (Data Receive Ready?) |
| 43 | } |
| 44 | |
| 45 | return res; |
| 18 | 46 | } |
| 19 | 47 | |
| 20 | 48 | WRITE8_MEMBER( isa8_mpu401_device::mpu401_w ) |
| 21 | 49 | { |
| 22 | | // ... |
| 50 | if(offset == 0) // data |
| 51 | { |
| 52 | printf("%02x %02x\n",offset,data); |
| 53 | } |
| 54 | else // command |
| 55 | { |
| 56 | printf("%02x %02x\n",offset,data); |
| 57 | |
| 58 | switch(data) |
| 59 | { |
| 60 | case 0xff: // reset |
| 61 | //m_isa->irq2_w(1); |
| 62 | break; |
| 63 | } |
| 64 | } |
| 65 | |
| 23 | 66 | } |
| 24 | 67 | |
| 25 | 68 | //************************************************************************** |