summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/igs/igs017.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/igs/igs017.cpp')
-rw-r--r--src/mame/igs/igs017.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/mame/igs/igs017.cpp b/src/mame/igs/igs017.cpp
index 67c54eaad28..bbf89e92bd1 100644
--- a/src/mame/igs/igs017.cpp
+++ b/src/mame/igs/igs017.cpp
@@ -91,7 +91,7 @@ class igs_mux_device :
public device_memory_interface
{
public:
- igs_mux_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
+ igs_mux_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);
void address_w(u8 data);
void data_w(u8 data);
@@ -117,7 +117,7 @@ device_memory_interface::space_config_vector igs_mux_device::memory_space_config
DEFINE_DEVICE_TYPE(IGS_MUX, igs_mux_device, "igs_mux", "IGS I/O Multiplexer")
-igs_mux_device::igs_mux_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
+igs_mux_device::igs_mux_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock)
: device_t(mconfig, IGS_MUX, tag, owner, clock)
, device_memory_interface(mconfig, *this)
, m_space_config("igs_mux", ENDIANNESS_LITTLE, 8, 8, 0)
@@ -156,7 +156,7 @@ u8 igs_mux_device::data_r()
class igs_string_device : public device_t
{
public:
- igs_string_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
+ igs_string_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);
u8 result_r(); // 0x05: result_r
void do_bitswap_w(offs_t offset, u8 data); // 0x20-0x27: do_bitswap_w
@@ -178,7 +178,7 @@ private:
DEFINE_DEVICE_TYPE(IGS_STRING, igs_string_device, "igs_string", "IGS String Protection")
-igs_string_device::igs_string_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
+igs_string_device::igs_string_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock)
: device_t(mconfig, IGS_STRING, tag, owner, clock)
, m_region_key(*this, DEVICE_SELF)
{ }
@@ -301,7 +301,7 @@ u8 igs_string_device::advance_string_offs_r(address_space &space)
class igs_bitswap_device : public device_t
{
public:
- igs_bitswap_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
+ igs_bitswap_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);
u8 result_r(); // 0x03: result_r
void word_w(u8 data); // 0x40-0x47: word_w
@@ -368,7 +368,7 @@ void igs_bitswap_device::set_val_xor(u16 val_xor)
DEFINE_DEVICE_TYPE(IGS_BITSWAP, igs_bitswap_device, "igs_bitswap", "IGS Bitswap Protection")
-igs_bitswap_device::igs_bitswap_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
+igs_bitswap_device::igs_bitswap_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock)
: device_t(mconfig, IGS_BITSWAP, tag, owner, clock)
{ }
@@ -472,7 +472,7 @@ void igs_bitswap_device::reset_w(u8 data)
class igs_incdec_device : public device_t
{
public:
- igs_incdec_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
+ igs_incdec_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);
u8 result_r();
void reset_w(u8 data);
@@ -518,7 +518,7 @@ void igs_incdec_device::dec_w(u8 data)
DEFINE_DEVICE_TYPE(IGS_INCDEC, igs_incdec_device, "igs_incdec", "IGS Inc/Dec Protection")
-igs_incdec_device::igs_incdec_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
+igs_incdec_device::igs_incdec_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock)
: device_t(mconfig, IGS_INCDEC, tag, owner, clock)
{ }
@@ -541,7 +541,7 @@ void igs_incdec_device::device_reset()
class igs_inc_device : public device_t
{
public:
- igs_inc_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
+ igs_inc_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);
u8 result_r();
void reset_w(u8 data);
@@ -577,7 +577,7 @@ void igs_inc_device::inc_w(u8 data)
DEFINE_DEVICE_TYPE(IGS_INC, igs_inc_device, "igs_inc", "IGS Inc Protection")
-igs_inc_device::igs_inc_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
+igs_inc_device::igs_inc_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock)
: device_t(mconfig, IGS_INC, tag, owner, clock)
{ }
@@ -4273,7 +4273,7 @@ INPUT_PORTS_END
void igs017_state::base_machine_oki(machine_config &config, const XTAL &xtal_oki)
{
// i/o
- IGS_MUX(config, m_igs_mux, 0);
+ IGS_MUX(config, m_igs_mux);
I8255A(config, m_ppi);
@@ -4286,7 +4286,7 @@ void igs017_state::base_machine_oki(machine_config &config, const XTAL &xtal_oki
m_screen->set_screen_update("igs017_igs031", FUNC(igs017_igs031_device::screen_update));
m_screen->set_palette("igs017_igs031:palette");
- IGS017_IGS031(config, m_igs017_igs031, 0);
+ IGS017_IGS031(config, m_igs017_igs031);
m_igs017_igs031->set_i8255_tag("ppi8255");
// sound
@@ -4325,7 +4325,7 @@ void igs017_state::iqblocka(machine_config &config)
m_ppi->in_pc_callback().set_ioport("DSW3");
// protection
- IGS_BITSWAP(config, m_igs_bitswap, 0);
+ IGS_BITSWAP(config, m_igs_bitswap);
m_igs_bitswap->set_val_xor(0x15d6);
m_igs_bitswap->set_mf_bits(3, 5, 9, 11);
m_igs_bitswap->set_m3_bits<0>(~5, 8, ~10, ~15);
@@ -4333,7 +4333,7 @@ void igs017_state::iqblocka(machine_config &config)
m_igs_bitswap->set_m3_bits<2>( 2, ~6, ~11, ~15);
m_igs_bitswap->set_m3_bits<3>( 0, ~1, ~3, ~15);
- IGS_INCDEC(config, m_igs_incdec, 0);
+ IGS_INCDEC(config, m_igs_incdec);
// sound
YM2413(config, "ymsnd", 3.579545_MHz_XTAL).add_route(ALL_OUTPUTS, "mono", 0.5);
@@ -4383,9 +4383,9 @@ void igs017_state::tarzan(machine_config &config)
HOPPER(config, m_hopper, attotime::from_msec(50), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW);
// protection
- IGS_STRING(config, m_igs_string, 0);
+ IGS_STRING(config, m_igs_string);
- IGS_INCDEC(config, m_igs_incdec, 0);
+ IGS_INCDEC(config, m_igs_incdec);
// video
m_igs017_igs031->set_palette_scramble_cb(FUNC(igs017_state::tarzan_palette_bitswap));
@@ -4417,9 +4417,9 @@ void igs017_state::starzan(machine_config &config)
HOPPER(config, m_hopper, attotime::from_msec(50), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW);
// protection
- IGS_STRING(config, m_igs_string, 0);
+ IGS_STRING(config, m_igs_string);
- IGS_INCDEC(config, m_igs_incdec, 0);
+ IGS_INCDEC(config, m_igs_incdec);
// video
m_igs017_igs031->set_palette_scramble_cb(FUNC(igs017_state::tarzan_palette_bitswap));
@@ -4476,9 +4476,9 @@ void igs017_state::cpoker2(machine_config &config)
HOPPER(config, m_hopper, attotime::from_msec(50), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW);
// protection
- IGS_INCDEC(config, m_igs_incdec, 0);
+ IGS_INCDEC(config, m_igs_incdec);
- IGS_INC(config, m_igs_inc, 0);
+ IGS_INC(config, m_igs_inc);
// video
m_igs017_igs031->set_palette_scramble_cb(FUNC(igs017_state::tarzan_palette_bitswap));
@@ -4506,7 +4506,7 @@ void igs017_state::tjsb(machine_config &config)
HOPPER(config, m_hopper, attotime::from_msec(50), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW);
// protection
- IGS_STRING(config, m_igs_string, 0);
+ IGS_STRING(config, m_igs_string);
// video
m_igs017_igs031->set_palette_scramble_cb(FUNC(igs017_state::tjsb_palette_bitswap));
@@ -4537,9 +4537,9 @@ void igs017_state::spkrform(machine_config &config)
HOPPER(config, m_hopper, attotime::from_msec(50), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW);
// protection
- IGS_STRING(config, m_igs_string, 0);
+ IGS_STRING(config, m_igs_string);
- IGS_INCDEC(config, m_igs_incdec, 0);
+ IGS_INCDEC(config, m_igs_incdec);
// sound
YM2413(config, "ymsnd", 3.579545_MHz_XTAL).add_route(ALL_OUTPUTS, "mono", 0.5);
@@ -4577,7 +4577,7 @@ void igs017_state::mgcs(machine_config &config)
HOPPER(config, m_hopper, attotime::from_msec(50), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW);
// protection
- IGS_STRING(config, m_igs_string, 0);
+ IGS_STRING(config, m_igs_string);
// video
m_igs017_igs031->set_palette_scramble_cb(FUNC(igs017_state::mgcs_palette_bitswap));
@@ -4604,9 +4604,9 @@ void igs017_state::lhzb2(machine_config &config)
HOPPER(config, m_hopper, attotime::from_msec(50), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW);
// protection
- IGS_STRING(config, m_igs_string, 0);
+ IGS_STRING(config, m_igs_string);
- IGS022(config, m_igs022, 0);
+ IGS022(config, m_igs022);
// video
m_igs017_igs031->set_palette_scramble_cb(FUNC(igs017_state::lhzb2a_palette_bitswap));
@@ -4639,9 +4639,9 @@ void igs017_state::lhzb2a(machine_config &config)
HOPPER(config, m_hopper, attotime::from_msec(50), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW);
// protection
- IGS_STRING(config, m_igs_string, 0);
+ IGS_STRING(config, m_igs_string);
- IGS_BITSWAP(config, m_igs_bitswap, 0);
+ IGS_BITSWAP(config, m_igs_bitswap);
m_igs_bitswap->set_val_xor(0x289a);
m_igs_bitswap->set_mf_bits(4, 7, 10, 13);
m_igs_bitswap->set_m3_bits<0>(~3, 8, ~12, ~15);
@@ -4649,7 +4649,7 @@ void igs017_state::lhzb2a(machine_config &config)
m_igs_bitswap->set_m3_bits<2>(~3, 4, ~5, ~15);
m_igs_bitswap->set_m3_bits<3>(~9, ~11, 12, ~15);
- IGS_INCDEC(config, m_igs_incdec, 0);
+ IGS_INCDEC(config, m_igs_incdec);
// video
m_igs017_igs031->set_palette_scramble_cb(FUNC(igs017_state::lhzb2a_palette_bitswap));
@@ -4676,9 +4676,9 @@ void igs017_state::slqz2(machine_config &config)
HOPPER(config, m_hopper, attotime::from_msec(50), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW);
// protection
- IGS_STRING(config, m_igs_string, 0);
+ IGS_STRING(config, m_igs_string);
- IGS022(config, m_igs022, 0);
+ IGS022(config, m_igs022);
// video
m_igs017_igs031->set_palette_scramble_cb(FUNC(igs017_state::slqz2_palette_bitswap));
@@ -4705,7 +4705,7 @@ void igs017_state::sdmg2(machine_config &config)
HOPPER(config, m_hopper, attotime::from_msec(50), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW);
// protection
- IGS_INCDEC(config, m_igs_incdec, 0);
+ IGS_INCDEC(config, m_igs_incdec);
}
@@ -4745,7 +4745,7 @@ void igs017_state::mgdh(machine_config &config)
m_igs_mux->set_addrmap(0, &igs017_state::mgdh_mux_map);
// protection (only used for the game id check?)
-// IGS_STRING(config, m_igs_string, 0);
+// IGS_STRING(config, m_igs_string);
}