Previous 15994 Revisions Next

r14127 Sunday 22nd January, 2012 at 22:45:19 UTC by Angelo Salese
Minor MPU-401 notes
[src/mess/machine]isa_mpu401.c

src/mess/machine/isa_mpu401.c
r14126r14127
99
1010#include "emu.h"
1111#include "isa_mpu401.h"
12#include "machine/pic8259.h"
1213
14/*
15DIP-SWs
161-2-3-4
17         0x200
18      1  0x210
19    1    0x220
20...
211   1 1  0x330 (default)
22...
231 1 1 1  0x370
1324
255-6-7-8
261        irq2 (default)
27  1      irq3
28    1    irq5
29      1  irq7
30*/
1431
1532READ8_MEMBER( isa8_mpu401_device::mpu401_r )
1633{
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;
1846}
1947
2048WRITE8_MEMBER( isa8_mpu401_device::mpu401_w )
2149{
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
2366}
2467
2568//**************************************************************************

Previous 15994 Revisions Next


© 1998-2018 The MESS Team