mirror of
https://github.com/holub/mame
synced 2025-05-28 16:43:04 +03:00
(MESS) Application of the AM_DEVSETOFFSET feature.
This commit is contained in:
parent
9ed27202aa
commit
43e1a44c25
@ -145,7 +145,7 @@ static ADDRESS_MAP_START(memmap, AS_PROGRAM, 16, ti99_4x_state)
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xffff)
|
||||
AM_RANGE(0x0000, 0x1fff) AM_ROM
|
||||
AM_RANGE(0x8000, 0x80ff) AM_MIRROR(0x0300) AM_RAM
|
||||
AM_RANGE(0x0000, 0xffff) AM_DEVREADWRITE(DATAMUX_TAG, ti99_datamux_device, read, write)
|
||||
AM_RANGE(0x0000, 0xffff) AM_DEVREADWRITE(DATAMUX_TAG, ti99_datamux_device, read, write) AM_DEVSETOFFSET(DATAMUX_TAG, ti99_datamux_device, setoffset)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
/*
|
||||
|
@ -77,7 +77,7 @@ ti99_datamux_device::ti99_datamux_device(const machine_config &mconfig, const ch
|
||||
{
|
||||
}
|
||||
|
||||
#define VERBOSE 0
|
||||
#define VERBOSE 1
|
||||
#define LOG logerror
|
||||
|
||||
/***************************************************************************
|
||||
@ -208,6 +208,11 @@ WRITE16_MEMBER( ti99_datamux_device::write )
|
||||
m_ready(CLEAR_LINE);
|
||||
}
|
||||
|
||||
SETOFFSET_MEMBER( ti99_datamux_device::setoffset )
|
||||
{
|
||||
if (VERBOSE>6) LOG("set address %04x\n", offset << 1);
|
||||
}
|
||||
|
||||
/*
|
||||
The datamux is connected to the clock line in order to operate
|
||||
the wait state counter.
|
||||
|
@ -70,6 +70,7 @@ public:
|
||||
ti99_datamux_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
DECLARE_READ16_MEMBER( read );
|
||||
DECLARE_WRITE16_MEMBER( write );
|
||||
DECLARE_SETOFFSET_MEMBER( setoffset );
|
||||
|
||||
void clock_in(int state);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user