| Previous | 199869 Revisions | Next |
| r25388 Saturday 21st September, 2013 at 22:38:28 UTC by Michael Zapf |
|---|
| (MESS) Application of the AM_DEVSETOFFSET feature. |
| [src/mess/drivers] | ti99_4x.c |
| [src/mess/machine/ti99] | datamux.c datamux.h |
| r25387 | r25388 | |
|---|---|---|
| 77 | 77 | { |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | #define VERBOSE | |
| 80 | #define VERBOSE 1 | |
| 81 | 81 | #define LOG logerror |
| 82 | 82 | |
| 83 | 83 | /*************************************************************************** |
| r25387 | r25388 | |
| 208 | 208 | m_ready(CLEAR_LINE); |
| 209 | 209 | } |
| 210 | 210 | |
| 211 | SETOFFSET_MEMBER( ti99_datamux_device::setoffset ) | |
| 212 | { | |
| 213 | if (VERBOSE>6) LOG("set address %04x\n", offset << 1); | |
| 214 | } | |
| 215 | ||
| 211 | 216 | /* |
| 212 | 217 | The datamux is connected to the clock line in order to operate |
| 213 | 218 | the wait state counter. |
| r25387 | r25388 | |
|---|---|---|
| 70 | 70 | ti99_datamux_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 71 | 71 | DECLARE_READ16_MEMBER( read ); |
| 72 | 72 | DECLARE_WRITE16_MEMBER( write ); |
| 73 | DECLARE_SETOFFSET_MEMBER( setoffset ); | |
| 73 | 74 | |
| 74 | 75 | void clock_in(int state); |
| 75 | 76 |
| r25387 | r25388 | |
|---|---|---|
| 145 | 145 | ADDRESS_MAP_GLOBAL_MASK(0xffff) |
| 146 | 146 | AM_RANGE(0x0000, 0x1fff) AM_ROM |
| 147 | 147 | AM_RANGE(0x8000, 0x80ff) AM_MIRROR(0x0300) AM_RAM |
| 148 | AM_RANGE(0x0000, 0xffff) AM_DEVREADWRITE(DATAMUX_TAG, ti99_datamux_device, read, write) | |
| 148 | AM_RANGE(0x0000, 0xffff) AM_DEVREADWRITE(DATAMUX_TAG, ti99_datamux_device, read, write) AM_DEVSETOFFSET(DATAMUX_TAG, ti99_datamux_device, setoffset) | |
| 149 | 149 | ADDRESS_MAP_END |
| 150 | 150 | |
| 151 | 151 | /* |
| Previous | 199869 Revisions | Next |