diff options
author | 2020-05-25 16:42:42 +0200 | |
---|---|---|
committer | 2020-05-25 16:42:57 +0200 | |
commit | 22513fb6fe281f5ccb75aaddb6417a12a66c313d (patch) | |
tree | 3cf84032cc6482d685a8dbb57e015bd17c7f7fdc /src/mame/drivers/galgames.cpp | |
parent | e42c2d2874cf9c1092c01ab5ce9ef997d465ce25 (diff) |
emumem: A little more speedup. cache and specific change syntax, and are not pointers anymore [O. Galibert]
The last(?) two changes are:
- Add a template parameter to everything (theoretically the address
space width, in practice a level derived from it to keep as much
compatibility between widths as possible) so that the shift size
becomes a constant.
- Change the syntax of declaring and initializing the caches and
specifics so that they're embedded in the owner device. Solves
lifetime issues and also removes one indirection (looking up the base
dispatch pointer through the cache/specific pointer).
Diffstat (limited to 'src/mame/drivers/galgames.cpp')
-rw-r--r-- | src/mame/drivers/galgames.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mame/drivers/galgames.cpp b/src/mame/drivers/galgames.cpp index 4f7a4e2f1d3..a96793e50dd 100644 --- a/src/mame/drivers/galgames.cpp +++ b/src/mame/drivers/galgames.cpp @@ -48,6 +48,7 @@ Notes: #include "emupal.h" #include "screen.h" #include "speaker.h" +#include "dirom.h" /*************************************************************************** @@ -67,7 +68,7 @@ DECLARE_DEVICE_TYPE(GALGAMES_SLOT, galgames_slot_device) // CART declaration -class galgames_cart_device : public device_t, public device_rom_interface +class galgames_cart_device : public device_t, public device_rom_interface<21, 1, 0, ENDIANNESS_BIG> { public: // construction/destruction @@ -313,7 +314,7 @@ galgames_cart_device::galgames_cart_device( device_t *owner, u32 clock): device_t(mconfig, type, tag, owner, clock), - device_rom_interface(mconfig, *this, 21, ENDIANNESS_BIG, 16), + device_rom_interface(mconfig, *this), m_cart(0), m_slot(*this, "^slot"), m_eeprom(*this, "eeprom"), |