mirror of
https://github.com/holub/mame
synced 2025-05-03 13:06:47 +03:00
fd1089, fd1094: Device cleanup [O. Galibert]
This commit is contained in:
parent
47e19d6eff
commit
446108bfe9
@ -404,6 +404,7 @@ public:
|
|||||||
// construction/destruction
|
// construction/destruction
|
||||||
m68000_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
|
m68000_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
|
||||||
m68000_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source);
|
m68000_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source);
|
||||||
|
m68000_device(const machine_config &mconfig, const device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source);
|
||||||
|
|
||||||
m68000_device(const machine_config &mconfig, const char *name, const char *tag, device_t *owner, uint32_t clock,
|
m68000_device(const machine_config &mconfig, const char *name, const char *tag, device_t *owner, uint32_t clock,
|
||||||
const device_type type, uint32_t prg_data_width, uint32_t prg_address_bits, address_map_constructor internal_map, const char *shortname, const char *source);
|
const device_type type, uint32_t prg_data_width, uint32_t prg_address_bits, address_map_constructor internal_map, const char *shortname, const char *source);
|
||||||
|
@ -2524,6 +2524,11 @@ m68000_device::m68000_device(const machine_config &mconfig, const char *tag, dev
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m68000_device::m68000_device(const machine_config &mconfig, const device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source)
|
||||||
|
: m68000_base_device(mconfig, name, tag, owner, clock, type, 16,24, shortname, source)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
void m68000_device::device_start()
|
void m68000_device::device_start()
|
||||||
{
|
{
|
||||||
init_cpu_m68000();
|
init_cpu_m68000();
|
||||||
|
@ -222,7 +222,7 @@ ADDRESS_MAP_END
|
|||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
fd1089_base_device::fd1089_base_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source)
|
fd1089_base_device::fd1089_base_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source)
|
||||||
: m68000_device(mconfig, tag, owner, clock, shortname, source),
|
: m68000_device(mconfig, type, name, tag, owner, clock, shortname, source),
|
||||||
m_region(*this, DEVICE_SELF),
|
m_region(*this, DEVICE_SELF),
|
||||||
m_key(*this, "key"),
|
m_key(*this, "key"),
|
||||||
m_decrypted_opcodes(*this, ":fd1089_decrypted_opcodes")
|
m_decrypted_opcodes(*this, ":fd1089_decrypted_opcodes")
|
||||||
|
@ -553,7 +553,7 @@ uint16_t *fd1094_decryption_cache::decrypted_opcodes(uint8_t state)
|
|||||||
|
|
||||||
|
|
||||||
fd1094_device::fd1094_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
|
fd1094_device::fd1094_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
|
||||||
: m68000_device(mconfig, tag, owner, clock, "fd1094", __FILE__)
|
: m68000_device(mconfig, FD1094, "FD1094", tag, owner, clock, "fd1094", __FILE__)
|
||||||
, m_decrypted_opcodes_bank(*this, "^fd1094_decrypted_opcodes")
|
, m_decrypted_opcodes_bank(*this, "^fd1094_decrypted_opcodes")
|
||||||
, m_state(0x00)
|
, m_state(0x00)
|
||||||
, m_irqmode(false)
|
, m_irqmode(false)
|
||||||
|
Loading…
Reference in New Issue
Block a user