diff options
| author | 2018-02-01 10:04:01 +0100 | |
|---|---|---|
| committer | 2018-02-12 10:04:52 +0100 | |
| commit | c5219643162cb7d2a8688425a09008d28c8e2437 (patch) | |
| tree | f2775ca3b1770ab0d3fb568f0bdd6d9212c68bf6 /src/devices/machine/mpu401.cpp | |
| parent | 09b6ce46873b38de9030a3c0378ff327f17af881 (diff) | |
API change: Memory maps are now methods of the owner class [O. Galibert]
Also, a lot more freedom happened, that's going to be more visible
soon.
Diffstat (limited to 'src/devices/machine/mpu401.cpp')
| -rw-r--r-- | src/devices/machine/mpu401.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/machine/mpu401.cpp b/src/devices/machine/mpu401.cpp index f738050a7b1..16849816535 100644 --- a/src/devices/machine/mpu401.cpp +++ b/src/devices/machine/mpu401.cpp @@ -57,7 +57,7 @@ #define STAT_TX_FULL (0x40) // indicates the PC has written a new byte we haven't read yet #define STAT_RX_EMPTY (0x80) // indicates we've written a new byte the PC hasn't read yet -static ADDRESS_MAP_START( mpu401_map, AS_PROGRAM, 8, mpu401_device ) +ADDRESS_MAP_START(mpu401_device::mpu401_map) AM_RANGE(0x0000, 0x001f) AM_READWRITE(regs_mode2_r, regs_mode2_w) AM_RANGE(0x0020, 0x0021) AM_READWRITE(asic_r, asic_w) AM_RANGE(0x0080, 0x00ff) AM_RAM // on-chip RAM @@ -65,7 +65,7 @@ static ADDRESS_MAP_START( mpu401_map, AS_PROGRAM, 8, mpu401_device ) AM_RANGE(0xf000, 0xffff) AM_ROM AM_REGION(ROM_TAG, 0) ADDRESS_MAP_END -static ADDRESS_MAP_START( mpu401_io_map, AS_IO, 8, mpu401_device ) +ADDRESS_MAP_START(mpu401_device::mpu401_io_map) AM_RANGE(M6801_PORT1, M6801_PORT1) AM_READWRITE(port1_r, port1_w) AM_RANGE(M6801_PORT2, M6801_PORT2) AM_READWRITE(port2_r, port2_w) ADDRESS_MAP_END |
