(MESS) Application of the AM_DEVSETOFFSET feature.

This commit is contained in:
Michael Zapf 2013-09-21 22:38:28 +00:00
parent 9ed27202aa
commit 43e1a44c25
3 changed files with 8 additions and 2 deletions

View File

@ -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
/*

View File

@ -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.

View File

@ -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);