diff options
author | 2018-02-01 10:04:01 +0100 | |
---|---|---|
committer | 2018-02-12 10:04:52 +0100 | |
commit | c5219643162cb7d2a8688425a09008d28c8e2437 (patch) | |
tree | f2775ca3b1770ab0d3fb568f0bdd6d9212c68bf6 /src/mame/drivers/tutor.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/mame/drivers/tutor.cpp')
-rw-r--r-- | src/mame/drivers/tutor.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/drivers/tutor.cpp b/src/mame/drivers/tutor.cpp index ec153e791d1..ee6e2a3de07 100644 --- a/src/mame/drivers/tutor.cpp +++ b/src/mame/drivers/tutor.cpp @@ -229,6 +229,9 @@ public: DECLARE_WRITE_LINE_MEMBER(write_centronics_busy); void pyuutajr(machine_config &config); void tutor(machine_config &config); + void pyuutajr_mem(address_map &map); + void tutor_io(address_map &map); + void tutor_memmap(address_map &map); }; @@ -547,7 +550,7 @@ WRITE8_MEMBER( tutor_state::test_w ) } #endif -static ADDRESS_MAP_START(tutor_memmap, AS_PROGRAM, 8, tutor_state) +ADDRESS_MAP_START(tutor_state::tutor_memmap) AM_RANGE(0x0000, 0x3fff) AM_ROM AM_RANGE(0x4000, 0x7fff) AM_ROMBANK("bank1") AM_WRITENOP AM_RANGE(0x8000, 0xbfff) AM_ROMBANK("bank2") AM_WRITENOP @@ -563,7 +566,7 @@ static ADDRESS_MAP_START(tutor_memmap, AS_PROGRAM, 8, tutor_state) AM_RANGE(0xf000, 0xffff) AM_READ(tutor_highmem_r) AM_WRITENOP /*free for expansion (and internal processor RAM)*/ ADDRESS_MAP_END -static ADDRESS_MAP_START(pyuutajr_mem, AS_PROGRAM, 8, tutor_state) +ADDRESS_MAP_START(tutor_state::pyuutajr_mem) AM_RANGE(0x0000, 0x3fff) AM_ROM AM_RANGE(0x4000, 0x7fff) AM_ROMBANK("bank1") AM_WRITENOP AM_RANGE(0x8000, 0xbfff) AM_ROMBANK("bank2") AM_WRITENOP @@ -591,7 +594,7 @@ ADDRESS_MAP_END >ed00(r): tape input */ -static ADDRESS_MAP_START(tutor_io, AS_IO, 8, tutor_state) +ADDRESS_MAP_START(tutor_state::tutor_io) AM_RANGE(0xec0, 0xec7) AM_READ(key_r) /*keyboard interface*/ AM_RANGE(0xed0, 0xed0) AM_READ(tutor_cassette_r) /*cassette interface*/ ADDRESS_MAP_END |