mirror of
https://github.com/holub/mame
synced 2025-04-24 09:20:02 +03:00
(MESS) msx.c: Added a small workaround to support systems with 8KB RAM.
This commit is contained in:
parent
c709f7f5f6
commit
f77740b23e
@ -5,12 +5,19 @@
|
||||
|
||||
#define MCFG_MSX_SLOT_RAM_ADD(_tag, _startpage, _numpages) \
|
||||
MCFG_MSX_INTERNAL_SLOT_ADD(_tag, MSX_SLOT_RAM, _startpage, _numpages)
|
||||
|
||||
#define MCFG_MSX_SLOT_RAM_8KB \
|
||||
msx_slot_ram_device::force_start_address(*device, 0xe000);
|
||||
|
||||
|
||||
class msx_slot_ram_device : public device_t,
|
||||
public msx_internal_slot_interface
|
||||
{
|
||||
public:
|
||||
msx_slot_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
|
||||
static void force_start_address(device_t &device, UINT16 start) { downcast<msx_slot_ram_device &>(device).m_start_address = start; }
|
||||
|
||||
virtual void device_start();
|
||||
|
||||
virtual DECLARE_READ8_MEMBER(read);
|
||||
@ -20,6 +27,8 @@ private:
|
||||
dynamic_array<UINT8> m_ram;
|
||||
};
|
||||
|
||||
|
||||
extern const device_type MSX_SLOT_RAM;
|
||||
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user