trunk/src/mess/drivers/attache.c
| r23622 | r23623 | |
| 44 | 44 | * |
| 45 | 45 | * TODO: |
| 46 | 46 | * - Keyboard repeat |
| 47 | | * - Get FDC/DMA transfers working |
| 48 | 47 | * - Get at least some of the system tests to pass |
| 49 | | * - Add graphics support |
| 50 | 48 | * - and probably lots more I've forgotten, too. |
| 51 | 49 | * |
| 52 | 50 | */ |
| r23622 | r23623 | |
| 64 | 62 | #include "video/tms9927.h" |
| 65 | 63 | #include "machine/ram.h" |
| 66 | 64 | #include "machine/nvram.h" |
| 67 | | #include "debugger.h" |
| 68 | 65 | |
| 69 | 66 | class attache_state : public driver_device |
| 70 | 67 | { |
| r23622 | r23623 | |
| 435 | 432 | m_kb_clock = state; |
| 436 | 433 | } |
| 437 | 434 | |
| 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 |
| 439 | 436 | READ8_MEMBER(attache_state::pio_portA_r) |
| 440 | 437 | { |
| 441 | 438 | UINT8 ret = 0xff; |
| r23622 | r23623 | |
| 505 | 502 | break; |
| 506 | 503 | case PIO_SEL_5832_WRITE: |
| 507 | 504 | 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); |
| 510 | 507 | m_rtc->address_w((data & 0xf0) >> 4); |
| 511 | 508 | m_rtc->data_w(space,0,data & 0x0f); |
| 512 | 509 | logerror("RTC: write %01x to %01x\n",data & 0x0f,(data & 0xf0) >> 4); |
| 513 | 510 | break; |
| 514 | 511 | case PIO_SEL_5832_READ: |
| 515 | 512 | 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); |
| 518 | 515 | m_rtc->address_w((data & 0xf0) >> 4); |
| 519 | 516 | logerror("RTC: write %01x to %01x (read)\n",data & 0x0f,(data & 0xf0) >> 4); |
| 520 | 517 | break; |