diff options
Diffstat (limited to 'src/devices/machine/mb89371.cpp')
-rw-r--r-- | src/devices/machine/mb89371.cpp | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/devices/machine/mb89371.cpp b/src/devices/machine/mb89371.cpp index 9c9a0d0e34a..7393bd7d529 100644 --- a/src/devices/machine/mb89371.cpp +++ b/src/devices/machine/mb89371.cpp @@ -22,13 +22,31 @@ void mb89371_device::device_start() { } -WRITE8_MEMBER(mb89371_device::write) +void mb89371_device::write(offs_t offset, uint8_t data, uint8_t mem_mask) { + switch (offset) + { + case 0: // data + //printf("%c", data); + break; + case 1: // control (0x40 = error reset) + case 2: // baud (9600 = 2) + case 3: // mode (8251 compatible?) + break; + } logerror("MB89371 unimplemented write @%X = %02X & %02X\n", offset, data, mem_mask); } -READ8_MEMBER(mb89371_device::read) +uint8_t mb89371_device::read(offs_t offset, uint8_t mem_mask) { + switch (offset) + { + case 0x00: // data + break; + case 0x01: // control + // bit 0 = txrdy, bit 1 = rxrdy + break; + } logerror("MB89371 unimplemented read @%X & %02X\n", offset, mem_mask); return 0xff; } |