summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/ppu2c0x.h
diff options
context:
space:
mode:
author mooglyguy <therealmogminer@gmail.com>2018-12-20 05:36:31 +0100
committer mooglyguy <therealmogminer@gmail.com>2018-12-20 05:36:55 +0100
commit32650ee591aad59123d549770ee38b2f627b6236 (patch)
treea2a304a9cb28f3bf5394ba5e50edbffb5ce2d232 /src/devices/video/ppu2c0x.h
parentef14630b0f6e1e6e0f87d1e309c195f9c1f4ae63 (diff)
-bus/nes/jaleco, pt554, bus/nes_ctrl/ctrl, hori, joypad: Removed MCFG and MACHINE_CONFIG macros. [Ryan Holtz]
-sound/asc, lmc1992, nes_apu, samples, video/ppu2c0x, ppu2c0x_vt: Removed MCFG macros. [Ryan Holtz] -audio/astrof, carnival, cclimber, cinemat, depthch, invinco, pulsar, spacefb, targ, tranqgun, turbo, vicdual vicdual-97271p, zaxxon: Removed MACHINE_CONFIG macros. [Ryan Holtz] -drivers/8080bw, astinvad, atarist, blockade, cham24, circus, cosmic, equites, famibox, gottlieb, gotya, gridlee, homerun, m10, m14, m63, mcr, meadows, mmagic, multigam, mw8080bw, nes, nes_vt, ninjakd2, playch10, safarir, segag80v, starcrus, starfire, suna8, super80, tankbatt, tattack, thief, tmnt, tnzs, triplhnt, vsnes: Removed MACHINE_CONFIG macros. [Ryan Holtz] -machine/genpin, mm1kb: Removed MACHINE_CONFIG macros. [Ryan Holtz]
Diffstat (limited to 'src/devices/video/ppu2c0x.h')
-rw-r--r--src/devices/video/ppu2c0x.h62
1 files changed, 12 insertions, 50 deletions
diff --git a/src/devices/video/ppu2c0x.h b/src/devices/video/ppu2c0x.h
index 2d12e243db6..0dbb2dc690c 100644
--- a/src/devices/video/ppu2c0x.h
+++ b/src/devices/video/ppu2c0x.h
@@ -31,43 +31,6 @@
///*************************************************************************
-// INTERFACE CONFIGURATION MACROS
-///*************************************************************************
-
-#define MCFG_PPU2C0X_ADD(_tag, _type) \
- MCFG_DEVICE_ADD(_tag, _type, 0)
-
-#define MCFG_PPU2C02_ADD(_tag) \
- MCFG_PPU2C0X_ADD(_tag, PPU_2C02)
-#define MCFG_PPU2C03B_ADD(_tag) \
- MCFG_PPU2C0X_ADD(_tag, PPU_2C03B)
-#define MCFG_PPU2C04_ADD(_tag) \
- MCFG_PPU2C0X_ADD(_tag, PPU_2C04)
-#define MCFG_PPU2C07_ADD(_tag) \
- MCFG_PPU2C0X_ADD(_tag, PPU_2C07)
-#define MCFG_PPUPALC_ADD(_tag) \
- MCFG_PPU2C0X_ADD(_tag, PPU_PALC)
-#define MCFG_PPU2C05_01_ADD(_tag) \
- MCFG_PPU2C0X_ADD(_tag, PPU_2C05_01)
-#define MCFG_PPU2C05_02_ADD(_tag) \
- MCFG_PPU2C0X_ADD(_tag, PPU_2C05_02)
-#define MCFG_PPU2C05_03_ADD(_tag) \
- MCFG_PPU2C0X_ADD(_tag, PPU_2C05_03)
-#define MCFG_PPU2C05_04_ADD(_tag) \
- MCFG_PPU2C0X_ADD(_tag, PPU_2C05_04)
-
-#define MCFG_PPU2C0X_SET_SCREEN MCFG_VIDEO_SET_SCREEN
-
-#define MCFG_PPU2C0X_CPU(_tag) \
- downcast<ppu2c0x_device &>(*device).set_cpu_tag(_tag);
-
-#define MCFG_PPU2C0X_INT_CALLBACK(_devcb) \
- downcast<ppu2c0x_device &>(*device).set_int_callback(DEVCB_##_devcb);
-
-#define MCFG_PPU2C0X_IGNORE_SPRITE_WRITE_LIMIT \
- downcast<ppu2c0x_device &>(*device).use_sprite_write_limitation_disable();
-
-///*************************************************************************
// TYPE DEFINITIONS
///*************************************************************************
@@ -105,8 +68,7 @@ public:
virtual DECLARE_READ8_MEMBER( palette_read );
virtual DECLARE_WRITE8_MEMBER( palette_write );
- void set_cpu_tag(const char *tag) { m_cpu.set_tag(tag); }
- template <typename Object> devcb_base &set_int_callback(Object &&cb) { return m_int_callback.set_callback(std::forward<Object>(cb)); }
+ template <typename T> void set_cpu_tag(T &&tag) { m_cpu.set_tag(std::forward<T>(tag)); }
auto int_callback() { return m_int_callback.bind(); }
/* routines */
@@ -193,7 +155,7 @@ protected:
};
// construction/destruction
- ppu2c0x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
+ ppu2c0x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock = 0);
virtual void device_start() override;
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
@@ -262,7 +224,7 @@ private:
class ppu2c0x_rgb_device : public ppu2c0x_device {
protected:
- ppu2c0x_rgb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
+ ppu2c0x_rgb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock = 0);
virtual void init_palette() override;
@@ -272,47 +234,47 @@ private:
class ppu2c02_device : public ppu2c0x_device {
public:
- ppu2c02_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ ppu2c02_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
};
class ppu2c03b_device : public ppu2c0x_rgb_device {
public:
- ppu2c03b_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ ppu2c03b_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
};
class ppu2c04_device : public ppu2c0x_rgb_device {
public:
- ppu2c04_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ ppu2c04_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
};
class ppu2c07_device : public ppu2c0x_device {
public:
- ppu2c07_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ ppu2c07_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
};
class ppupalc_device : public ppu2c0x_device {
public:
- ppupalc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ ppupalc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
};
class ppu2c05_01_device : public ppu2c0x_rgb_device {
public:
- ppu2c05_01_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ ppu2c05_01_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
};
class ppu2c05_02_device : public ppu2c0x_rgb_device {
public:
- ppu2c05_02_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ ppu2c05_02_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
};
class ppu2c05_03_device : public ppu2c0x_rgb_device {
public:
- ppu2c05_03_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ ppu2c05_03_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
};
class ppu2c05_04_device : public ppu2c0x_rgb_device {
public:
- ppu2c05_04_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ ppu2c05_04_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
};