Previous 15994 Revisions Next

r11269 Thursday 21st April, 2011 at 21:43:45 UTC by Curt Coder
Disabled logging and tried to fix C2031 device number. (no whatsnew)
[src/mess/machine]c2031.c c2031.h cbmiec.c ieee488.c

src/mess/machine/cbmiec.c
r11268r11269
199199//  MACROS / CONSTANTS
200200//**************************************************************************
201201
202#define LOG 1
202#define LOG
203203
204204
205205static const char *const SIGNAL_NAME[] = { "SRQ", "ATN", "CLK", "DATA", "RESET" };
src/mess/machine/c2031.c
r11268r11269
9696
9797   assert((address > 7) && (address < 12));
9898
99   c2031->m_address = address - 8;
99   c2031->m_address = address;
100100}
101101
102102
r11268r11269
268268
269269   m_bus->nrfd_w(this, nrfd);
270270   m_bus->ndac_w(this, ndac);
271
272   m_via0->write_ca2(get_device_number());
271273}
272274
273275
r11268r11269
279281
280282READ_LINE_MEMBER( c2031_device::via0_ca2_r )
281283{
282   int state = 0;
283
284   /*
285   switch (m_config.m_address)
286   {
287   case 0: state = (m_atna | m_nrfd_out);   break;
288   case 1: state = m_atna;               break;
289   case 2: state = m_nrfd_out;            break;
290   case 3: state = 0;                  break;
291   }
292   */
293
294   return state;
284   return get_device_number();
295285}
296286
297287
r11268r11269
483473
484474
485475//**************************************************************************
476//  INLINE HELPERS
477//**************************************************************************
478
479//-------------------------------------------------
480//  get_device_number -
481//-------------------------------------------------
482
483inline int c2031_device::get_device_number()
484{
485   int state = 1;
486
487   switch (m_config.m_address)
488   {
489   case 8: state = (m_atna & m_nrfd_out);   break;
490   case 9: state = m_nrfd_out;            break;
491   case 10: state = m_atna;            break;
492   case 11: state = 1;                  break;
493   }
494
495   return state;
496}
497
498
499
500//**************************************************************************
486501//  LIVE DEVICE
487502//**************************************************************************
488503
src/mess/machine/c2031.h
r11268r11269
112112   void ieee488_atn(int state);
113113   void ieee488_ifc(int state);
114114
115   inline int get_device_number();
116
115117   required_device<cpu_device> m_maincpu;
116118   required_device<via6522_device> m_via0;
117119   required_device<via6522_device> m_via1;
src/mess/machine/ieee488.c
r11268r11269
1717//  MACROS / CONSTANTS
1818//**************************************************************************
1919
20#define LOG 1
20#define LOG
2121
2222
2323static const char *const SIGNAL_NAME[] = { "EOI", "DAV", "NRFD", "NDAC", "IFC", "SRQ", "ATN", "REN" };

Previous 15994 Revisions Next


© 1998-2018 The MESS Team