Previous 199869 Revisions Next

r32108 Saturday 13th September, 2014 at 18:39:42 UTC by Wilbert Pol
(MESS) msx.c: Added a small workaround to support systems with 8KB RAM.
[src/emu/bus/msx_slot]ram.h

trunk/src/emu/bus/msx_slot/ram.h
r32107r32108
55
66#define MCFG_MSX_SLOT_RAM_ADD(_tag, _startpage, _numpages) \
77   MCFG_MSX_INTERNAL_SLOT_ADD(_tag, MSX_SLOT_RAM, _startpage, _numpages)
8
9#define MCFG_MSX_SLOT_RAM_8KB \
10   msx_slot_ram_device::force_start_address(*device, 0xe000);
11
12
813class msx_slot_ram_device : public device_t,
914                     public msx_internal_slot_interface
1015{
1116public:
1217   msx_slot_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
1318
19   static void force_start_address(device_t &device, UINT16 start) { downcast<msx_slot_ram_device &>(device).m_start_address = start; }
20
1421   virtual void device_start();
1522
1623   virtual DECLARE_READ8_MEMBER(read);
r32107r32108
2027   dynamic_array<UINT8> m_ram;
2128};
2229
30
2331extern const device_type MSX_SLOT_RAM;
2432
33
2534#endif

Previous 199869 Revisions Next


© 1997-2024 The MAME Team