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

trunk/src/mess/machine/ti99/datamux.c
r25387r25388
7777{
7878}
7979
80#define VERBOSE 0
80#define VERBOSE 1
8181#define LOG logerror
8282
8383/***************************************************************************
r25387r25388
208208   m_ready(CLEAR_LINE);
209209}
210210
211SETOFFSET_MEMBER( ti99_datamux_device::setoffset )
212{
213   if (VERBOSE>6) LOG("set address %04x\n", offset << 1);
214}
215
211216/*
212217    The datamux is connected to the clock line in order to operate
213218    the wait state counter.
trunk/src/mess/machine/ti99/datamux.h
r25387r25388
7070   ti99_datamux_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
7171   DECLARE_READ16_MEMBER( read );
7272   DECLARE_WRITE16_MEMBER( write );
73   DECLARE_SETOFFSET_MEMBER( setoffset );
7374
7475   void clock_in(int state);
7576
trunk/src/mess/drivers/ti99_4x.c
r25387r25388
145145   ADDRESS_MAP_GLOBAL_MASK(0xffff)
146146   AM_RANGE(0x0000, 0x1fff) AM_ROM
147147   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)
149149ADDRESS_MAP_END
150150
151151/*

Previous 199869 Revisions Next


© 1997-2024 The MAME Team