mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
Fix build (nw)
This commit is contained in:
parent
36946bb332
commit
c66ca3bc64
@ -123,11 +123,10 @@ DEFINE_DEVICE_TYPE(V33A, v33a_device, "v33a", "NEC V33A")
|
||||
|
||||
|
||||
|
||||
nec_common_device::nec_common_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, bool is_16bit, offs_t fetch_xor, uint8_t prefetch_size, uint8_t prefetch_cycles, uint32_t chip_type)
|
||||
nec_common_device::nec_common_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, bool is_16bit, uint8_t prefetch_size, uint8_t prefetch_cycles, uint32_t chip_type)
|
||||
: cpu_device(mconfig, type, tag, owner, clock)
|
||||
, m_program_config("program", ENDIANNESS_LITTLE, is_16bit ? 16 : 8, 20, 0)
|
||||
, m_io_config("io", ENDIANNESS_LITTLE, is_16bit ? 16 : 8, 16, 0)
|
||||
, m_fetch_xor(fetch_xor)
|
||||
, m_prefetch_size(prefetch_size)
|
||||
, m_prefetch_cycles(prefetch_cycles)
|
||||
, m_chip_type(chip_type)
|
||||
@ -136,13 +135,13 @@ nec_common_device::nec_common_device(const machine_config &mconfig, device_type
|
||||
|
||||
|
||||
v20_device::v20_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
|
||||
: nec_common_device(mconfig, V20, tag, owner, clock, false, 0, 4, 4, V20_TYPE)
|
||||
: nec_common_device(mconfig, V20, tag, owner, clock, false, 4, 4, V20_TYPE)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
v30_device::v30_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
|
||||
: nec_common_device(mconfig, V30, tag, owner, clock, true, BYTE_XOR_LE(0), 6, 2, V30_TYPE)
|
||||
: nec_common_device(mconfig, V30, tag, owner, clock, true, 6, 2, V30_TYPE)
|
||||
{
|
||||
}
|
||||
|
||||
@ -159,13 +158,13 @@ device_memory_interface::space_config_vector nec_common_device::memory_space_con
|
||||
* complete guess below, nbbatman will not work
|
||||
* properly without. */
|
||||
v33_device::v33_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
|
||||
: nec_common_device(mconfig, V33, tag, owner, clock, true, BYTE_XOR_LE(0), 6, 1, V33_TYPE)
|
||||
: nec_common_device(mconfig, V33, tag, owner, clock, true, 6, 1, V33_TYPE)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
v33a_device::v33a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
|
||||
: nec_common_device(mconfig, V33A, tag, owner, clock, true, BYTE_XOR_LE(0), 6, 1, V33_TYPE)
|
||||
: nec_common_device(mconfig, V33A, tag, owner, clock, true, 6, 1, V33_TYPE)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ class nec_common_device : public cpu_device
|
||||
{
|
||||
protected:
|
||||
// construction/destruction
|
||||
nec_common_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, bool is_16bit, offs_t fetch_xor, uint8_t prefetch_size, uint8_t prefetch_cycles, uint32_t chip_type);
|
||||
nec_common_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, bool is_16bit, uint8_t prefetch_size, uint8_t prefetch_cycles, uint32_t chip_type);
|
||||
|
||||
// device-level overrides
|
||||
virtual void device_start() override;
|
||||
@ -62,7 +62,6 @@ private:
|
||||
};
|
||||
|
||||
necbasicregs m_regs;
|
||||
offs_t m_fetch_xor;
|
||||
uint16_t m_sregs[4];
|
||||
|
||||
uint16_t m_ip;
|
||||
|
@ -535,8 +535,8 @@ MACHINE_CONFIG_START(v53_base_device::device_add_mconfig)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
v53_base_device::v53_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, offs_t fetch_xor, uint8_t prefetch_size, uint8_t prefetch_cycles, uint32_t chip_type)
|
||||
: nec_common_device(mconfig, type, tag, owner, clock, true, fetch_xor, prefetch_size, prefetch_cycles, chip_type),
|
||||
v53_base_device::v53_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint8_t prefetch_size, uint8_t prefetch_cycles, uint32_t chip_type)
|
||||
: nec_common_device(mconfig, type, tag, owner, clock, true, prefetch_size, prefetch_cycles, chip_type),
|
||||
m_io_space_config( "io", ENDIANNESS_LITTLE, 16, 16, 0, address_map_constructor(FUNC(v53_base_device::v53_internal_port_map), this) ),
|
||||
m_v53tcu(*this, "pit"),
|
||||
m_v53dmau(*this, "upd71071dma"),
|
||||
@ -576,12 +576,12 @@ v53_base_device::v53_base_device(const machine_config &mconfig, device_type type
|
||||
|
||||
|
||||
v53_device::v53_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
|
||||
: v53_base_device(mconfig, V53, tag, owner, clock, BYTE_XOR_LE(0), 6, 1, V33_TYPE)
|
||||
: v53_base_device(mconfig, V53, tag, owner, clock, 6, 1, V33_TYPE)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
v53a_device::v53a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
|
||||
: v53_base_device(mconfig, V53A, tag, owner, clock, BYTE_XOR_LE(0), 6, 1, V33_TYPE)
|
||||
: v53_base_device(mconfig, V53A, tag, owner, clock, 6, 1, V33_TYPE)
|
||||
{
|
||||
}
|
||||
|
@ -194,7 +194,7 @@ public:
|
||||
|
||||
void v53_internal_port_map(address_map &map);
|
||||
protected:
|
||||
v53_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, offs_t fetch_xor, uint8_t prefetch_size, uint8_t prefetch_cycles, uint32_t chip_type);
|
||||
v53_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint8_t prefetch_size, uint8_t prefetch_cycles, uint32_t chip_type);
|
||||
|
||||
// device-level overrides
|
||||
virtual void device_add_mconfig(machine_config &config) override;
|
||||
|
Loading…
Reference in New Issue
Block a user