diff options
author | Olivier Galibert <galibert@pobox.com> | 2017-04-01 12:34:48 +0200 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2017-04-01 22:39:35 +0200 |
commit | 5769f31c7d45b837b9f9c85aa137717afff99866 (patch) | |
tree | 97372ecf0e55967f4ecf515056a31ff4b336ac68 | |
parent | 2b9d6a355418d3aa86e384fa402dacea137b1a87 (diff) |
This is Sparta !
-rw-r--r-- | src/emu/emumem.cpp | 29 | ||||
-rw-r--r-- | src/emu/emumem.h | 13 |
2 files changed, 0 insertions, 42 deletions
diff --git a/src/emu/emumem.cpp b/src/emu/emumem.cpp index 432115400ed..0211e8de89e 100644 --- a/src/emu/emumem.cpp +++ b/src/emu/emumem.cpp @@ -4000,35 +4000,6 @@ void direct_read_data::remove_intersecting_ranges(offs_t bytestart, offs_t bytee } -//------------------------------------------------- -// set_direct_update - set a custom direct range -// update callback -//------------------------------------------------- - -direct_update_delegate direct_read_data::set_direct_update(direct_update_delegate function) -{ - direct_update_delegate old = m_directupdate; - m_directupdate = function; - return old; -} - - -//------------------------------------------------- -// explicit_configure - explicitly configure -// the start/end/mask and the pointers from -// within a custom callback -//------------------------------------------------- - -void direct_read_data::explicit_configure(offs_t bytestart, offs_t byteend, offs_t bytemask, void *ptr) -{ - m_bytestart = bytestart; - m_byteend = byteend; - m_bytemask = bytemask; - m_ptr = reinterpret_cast<u8 *>(ptr) - (bytestart & bytemask); -} - - - //************************************************************************** // MEMORY BLOCK //************************************************************************** diff --git a/src/emu/emumem.h b/src/emu/emumem.h index 946623f0c8b..78b51a96086 100644 --- a/src/emu/emumem.h +++ b/src/emu/emumem.h @@ -174,10 +174,6 @@ public: void force_update() { m_byteend = 0; m_bytestart = 1; } void force_update(u16 if_match) { if (m_entry == if_match) force_update(); } - // custom update callbacks and configuration - direct_update_delegate set_direct_update(direct_update_delegate function); - void explicit_configure(offs_t bytestart, offs_t byteend, offs_t bytemask, void *raw); - // accessor methods void *read_ptr(offs_t byteaddress, offs_t directxor = 0); u8 read_byte(offs_t byteaddress, offs_t directxor = 0); @@ -342,9 +338,6 @@ public: offs_t byte_to_address(offs_t address) const { return m_config.byte2addr(address); } offs_t byte_to_address_end(offs_t address) const { return m_config.byte2addr_end(address); } - // direct access - direct_update_delegate set_direct_update_handler(direct_update_delegate function) { return m_direct->set_direct_update(function); } - // umap ranges (short form) void unmap_read(offs_t addrstart, offs_t addrend, offs_t addrmirror = 0) { unmap_generic(addrstart, addrend, addrmirror, ROW_READ, false); } void unmap_write(offs_t addrstart, offs_t addrend, offs_t addrmirror = 0) { unmap_generic(addrstart, addrend, addrmirror, ROW_WRITE, false); } @@ -729,12 +722,6 @@ private: // MACROS //************************************************************************** -// opcode base adjustment handler function macro -#define DIRECT_UPDATE_MEMBER(name) offs_t name(ATTR_UNUSED direct_read_data &direct, ATTR_UNUSED offs_t address) -#define DECLARE_DIRECT_UPDATE_MEMBER(name) offs_t name(ATTR_UNUSED direct_read_data &direct, ATTR_UNUSED offs_t address) - - - // space read/write handler function macros #define READ8_MEMBER(name) u8 name(ATTR_UNUSED address_space &space, ATTR_UNUSED offs_t offset, ATTR_UNUSED u8 mem_mask) #define WRITE8_MEMBER(name) void name(ATTR_UNUSED address_space &space, ATTR_UNUSED offs_t offset, ATTR_UNUSED u8 data, ATTR_UNUSED u8 mem_mask) |