diff options
author | Olivier Galibert <galibert@pobox.com> | 2018-02-01 10:04:01 +0100 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2018-02-12 10:04:52 +0100 |
commit | c5219643162cb7d2a8688425a09008d28c8e2437 (patch) | |
tree | f2775ca3b1770ab0d3fb568f0bdd6d9212c68bf6 /src/zexall/zexall.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/zexall/zexall.cpp')
-rw-r--r-- | src/zexall/zexall.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zexall/zexall.cpp b/src/zexall/zexall.cpp index 2717d402d89..dc6977a5acb 100644 --- a/src/zexall/zexall.cpp +++ b/src/zexall/zexall.cpp @@ -30,6 +30,7 @@ public: DECLARE_WRITE8_MEMBER( output_req_w ); DECLARE_WRITE8_MEMBER( output_data_w ); + void z80_mem(address_map &map); private: required_device<cpu_device> m_maincpu; required_shared_ptr<uint8_t> m_main_ram; @@ -119,7 +120,7 @@ WRITE8_MEMBER( zexall_state::output_data_w ) Address Maps ******************************************************************************/ -static ADDRESS_MAP_START(z80_mem, AS_PROGRAM, 8, zexall_state) +ADDRESS_MAP_START(zexall_state::z80_mem) AM_RANGE(0x0000, 0xffff) AM_RAM AM_SHARE("main_ram") AM_RANGE(0xfffd, 0xfffd) AM_READWRITE(output_ack_r, output_ack_w) AM_RANGE(0xfffe, 0xfffe) AM_READWRITE(output_req_r, output_req_w) |