Previous 199869 Revisions Next

r23623 Tuesday 11th June, 2013 at 05:54:59 UTC by Barry Rodewald
attache: small RTC and documentation update. (no whatsnew)
[src/mess/drivers]attache.c

trunk/src/mess/drivers/attache.c
r23622r23623
4444 *
4545 *  TODO:
4646 *    - Keyboard repeat
47 *    - Get FDC/DMA transfers working
4847 *    - Get at least some of the system tests to pass
49 *    - Add graphics support
5048 *    - and probably lots more I've forgotten, too.
5149 *
5250 */
r23622r23623
6462#include "video/tms9927.h"
6563#include "machine/ram.h"
6664#include "machine/nvram.h"
67#include "debugger.h"
6865
6966class attache_state : public driver_device
7067{
r23622r23623
435432   m_kb_clock = state;
436433}
437434
438// TODO: Figure out exactly how the HLD, RD, WR and CS lines are hooked up
435// TODO: Figure out exactly how the HLD, RD, WR and CS lines on the RTC are hooked up
439436READ8_MEMBER(attache_state::pio_portA_r)
440437{
441438   UINT8 ret = 0xff;
r23622r23623
505502      break;
506503   case PIO_SEL_5832_WRITE:
507504      m_rtc->cs_w(1);
508      m_rtc->write_w(0);
509      m_rtc->read_w(1);
505      m_rtc->write_w(1);
506      m_rtc->read_w(0);
510507      m_rtc->address_w((data & 0xf0) >> 4);
511508      m_rtc->data_w(space,0,data & 0x0f);
512509      logerror("RTC: write %01x to %01x\n",data & 0x0f,(data & 0xf0) >> 4);
513510      break;
514511   case PIO_SEL_5832_READ:
515512      m_rtc->cs_w(1);
516      m_rtc->write_w(0);
517      m_rtc->read_w(1);
513      m_rtc->write_w(1);
514      m_rtc->read_w(0);
518515      m_rtc->address_w((data & 0xf0) >> 4);
519516      logerror("RTC: write %01x to %01x (read)\n",data & 0x0f,(data & 0xf0) >> 4);
520517      break;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team