diff options
author | 2022-06-16 12:47:52 +0200 | |
---|---|---|
committer | 2025-04-29 23:06:41 +0200 | |
commit | 45d4cd52a8194f2ef9e0383cfb2e2a35634af6ff (patch) | |
tree | 4e8d8fcb7382a5e9e0bce5ec59939bcfbe67155a /src/devices/cpu/tms7000 | |
parent | 5c14bcdfcb4aefb71b5b62387c4ad05dbeb3814e (diff) |
full xtal conversionxtal
Diffstat (limited to 'src/devices/cpu/tms7000')
-rw-r--r-- | src/devices/cpu/tms7000/tms7000.cpp | 26 | ||||
-rw-r--r-- | src/devices/cpu/tms7000/tms7000.h | 26 |
2 files changed, 26 insertions, 26 deletions
diff --git a/src/devices/cpu/tms7000/tms7000.cpp b/src/devices/cpu/tms7000/tms7000.cpp index 3ce6f001ca2..57e88914f61 100644 --- a/src/devices/cpu/tms7000/tms7000.cpp +++ b/src/devices/cpu/tms7000/tms7000.cpp @@ -111,12 +111,12 @@ void tms70c46_device::tms70c46_mem(address_map &map) // device definitions -tms7000_device::tms7000_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : +tms7000_device::tms7000_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : tms7000_device(mconfig, TMS7000, tag, owner, clock, address_map_constructor(FUNC(tms7000_device::tms7000_mem), this), 0) { } -tms7000_device::tms7000_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor internal, uint32_t info_flags) : +tms7000_device::tms7000_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, const XTAL &clock, address_map_constructor internal, uint32_t info_flags) : cpu_device(mconfig, type, tag, owner, clock), m_program_config("program", ENDIANNESS_BIG, 8, 16, 0, internal), m_port_in_cb(*this), @@ -126,57 +126,57 @@ tms7000_device::tms7000_device(const machine_config &mconfig, device_type type, { } -tms7020_device::tms7020_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : +tms7020_device::tms7020_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : tms7000_device(mconfig, TMS7020, tag, owner, clock, address_map_constructor(FUNC(tms7020_device::tms7020_mem), this), 0) { } -tms7020_exl_device::tms7020_exl_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : +tms7020_exl_device::tms7020_exl_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : tms7000_device(mconfig, TMS7020_EXL, tag, owner, clock, address_map_constructor(FUNC(tms7020_exl_device::tms7020_mem), this), 0) { } -tms7040_device::tms7040_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : +tms7040_device::tms7040_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : tms7000_device(mconfig, TMS7040, tag, owner, clock, address_map_constructor(FUNC(tms7040_device::tms7040_mem), this), 0) { } -tms70c00_device::tms70c00_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : +tms70c00_device::tms70c00_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : tms7000_device(mconfig, TMS70C00, tag, owner, clock, address_map_constructor(FUNC(tms70c00_device::tms7000_mem), this), CHIP_IS_CMOS) { } -tms70c20_device::tms70c20_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : +tms70c20_device::tms70c20_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : tms7000_device(mconfig, TMS70C20, tag, owner, clock, address_map_constructor(FUNC(tms70c20_device::tms7020_mem), this), CHIP_IS_CMOS) { } -tms70c40_device::tms70c40_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : +tms70c40_device::tms70c40_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : tms7000_device(mconfig, TMS70C40, tag, owner, clock, address_map_constructor(FUNC(tms70c40_device::tms7040_mem), this), CHIP_IS_CMOS) { } -tms7001_device::tms7001_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : +tms7001_device::tms7001_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : tms7000_device(mconfig, TMS7001, tag, owner, clock, address_map_constructor(FUNC(tms7001_device::tms7001_mem), this), CHIP_FAMILY_70X2) { } -tms7041_device::tms7041_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : +tms7041_device::tms7041_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : tms7000_device(mconfig, TMS7041, tag, owner, clock, address_map_constructor(FUNC(tms7041_device::tms7041_mem), this), CHIP_FAMILY_70X2) { } -tms7002_device::tms7002_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : +tms7002_device::tms7002_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : tms7000_device(mconfig, TMS7002, tag, owner, clock, address_map_constructor(FUNC(tms7002_device::tms7002_mem), this), CHIP_FAMILY_70X2) { } -tms7042_device::tms7042_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : +tms7042_device::tms7042_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : tms7000_device(mconfig, TMS7042, tag, owner, clock, address_map_constructor(FUNC(tms7042_device::tms7042_mem), this), CHIP_FAMILY_70X2) { } -tms70c46_device::tms70c46_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : +tms70c46_device::tms70c46_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : tms7000_device(mconfig, TMS70C46, tag, owner, clock, address_map_constructor(FUNC(tms70c46_device::tms70c46_mem), this), CHIP_IS_CMOS) { } diff --git a/src/devices/cpu/tms7000/tms7000.h b/src/devices/cpu/tms7000/tms7000.h index 8d623f5c725..29d93839363 100644 --- a/src/devices/cpu/tms7000/tms7000.h +++ b/src/devices/cpu/tms7000/tms7000.h @@ -25,7 +25,7 @@ class tms7000_device : public cpu_device { public: // construction/destruction - tms7000_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + tms7000_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); // read-only on 70x0 auto in_porta() { return m_port_in_cb[0].bind(); } @@ -75,7 +75,7 @@ protected: static constexpr uint32_t CHIP_FAMILY_70CX2 = 0x04; static constexpr uint32_t CHIP_FAMILY_MASK = 0x06; - tms7000_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, address_map_constructor internal, uint32_t info_flags); + tms7000_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, const XTAL &clock, address_map_constructor internal, uint32_t info_flags); // device-level overrides virtual void device_start() override; @@ -275,14 +275,14 @@ protected: class tms7020_device : public tms7000_device { public: - tms7020_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + tms7020_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); }; class tms7020_exl_device : public tms7000_device { public: - tms7020_exl_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + tms7020_exl_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); protected: virtual void execute_one(uint8_t op) override; @@ -295,35 +295,35 @@ private: class tms7040_device : public tms7000_device { public: - tms7040_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + tms7040_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); }; class tms70c00_device : public tms7000_device { public: - tms70c00_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + tms70c00_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); }; class tms70c20_device : public tms7000_device { public: - tms70c20_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + tms70c20_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); }; class tms70c40_device : public tms7000_device { public: - tms70c40_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + tms70c40_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); }; class tms70c46_device : public tms7000_device { public: - tms70c46_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + tms70c46_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); uint8_t control_r(); void control_w(uint8_t data); @@ -351,28 +351,28 @@ private: class tms7001_device : public tms7000_device { public: - tms7001_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + tms7001_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); }; class tms7041_device : public tms7000_device { public: - tms7041_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + tms7041_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); }; class tms7002_device : public tms7000_device { public: - tms7002_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + tms7002_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); }; class tms7042_device : public tms7000_device { public: - tms7042_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + tms7042_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); }; |