diff options
author | 2016-04-07 18:59:38 -0400 | |
---|---|---|
committer | 2016-04-07 18:59:38 -0400 | |
commit | c0f366c61374775f8f8b7661e84705b568134dea (patch) | |
tree | 626e95fa31e6e8480983abbe305c0415ded783d2 /src/devices/sound/k053260.h | |
parent | 5933d47ed740fd08c2f66f37fdca4f95e08df3d4 (diff) |
Devfind revision phase 1, cleaning out some legacy stuff
- Eliminate the cached device_t::m_region pointer and its region() getter method. Devices that need to bind to a region with the same tag should use optional/required_memory_region or optional/required_region_ptr with DEVICE_SELF as the subtag; this improves error checking. (DEVICE_SELF has been moved to device.h for greater visibility in the source.)
- Allow required/optional_region_ptr to specify a specific length which must match that of the region found.
- Implement finder_base::finder_tag() getter for diagnostic purposes.
- Perform some (not very efficient) validity checks on memory region finders instead of allowing them to automatically pass.
- Privatize device_memory_interface::m_addrspace.
Diffstat (limited to 'src/devices/sound/k053260.h')
-rw-r--r-- | src/devices/sound/k053260.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/devices/sound/k053260.h b/src/devices/sound/k053260.h index ace87855740..e80a2da87d7 100644 --- a/src/devices/sound/k053260.h +++ b/src/devices/sound/k053260.h @@ -22,7 +22,7 @@ MCFG_DEVICE_REPLACE(_tag, K053260, _clock) #define MCFG_K053260_REGION(_tag) \ - k053260_device::set_region_tag(*device, _tag); + k053260_device::set_region_tag(*device, "^" _tag); //************************************************************************** @@ -38,7 +38,7 @@ public: k053260_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); ~k053260_device() { } - static void set_region_tag(device_t &device, const char *tag) { downcast<k053260_device &>(device).m_rgnoverride = tag; } + static void set_region_tag(device_t &device, const char *tag) { downcast<k053260_device &>(device).m_rom.set_tag(tag); } DECLARE_READ8_MEMBER( main_read ); DECLARE_WRITE8_MEMBER( main_write ); @@ -55,11 +55,8 @@ protected: private: // configuration - const char * m_rgnoverride; - sound_stream * m_stream; - UINT8 * m_rom; - UINT32 m_rom_size; + required_region_ptr<UINT8> m_rom; // live state UINT8 m_portdata[4]; |