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/z8 | |
parent | 5c14bcdfcb4aefb71b5b62387c4ad05dbeb3814e (diff) |
full xtal conversionxtal
Diffstat (limited to 'src/devices/cpu/z8')
-rw-r--r-- | src/devices/cpu/z8/z8.cpp | 16 | ||||
-rw-r--r-- | src/devices/cpu/z8/z8.h | 16 |
2 files changed, 16 insertions, 16 deletions
diff --git a/src/devices/cpu/z8/z8.cpp b/src/devices/cpu/z8/z8.cpp index d59651b683b..ecadd71514a 100644 --- a/src/devices/cpu/z8/z8.cpp +++ b/src/devices/cpu/z8/z8.cpp @@ -175,7 +175,7 @@ void z8_device::register_map(address_map &map) } -z8_device::z8_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t rom_size, bool preprogrammed) +z8_device::z8_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, const XTAL &clock, uint32_t rom_size, bool preprogrammed) : cpu_device(mconfig, type, tag, owner, clock) , m_program_config("program", ENDIANNESS_BIG, 8, 16, 0, preprogrammed ? address_map_constructor(FUNC(z8_device::preprogrammed_map), this) : address_map_constructor(FUNC(z8_device::program_map), this)) , m_data_config("data", ENDIANNESS_BIG, 8, 16, 0) @@ -189,25 +189,25 @@ z8_device::z8_device(const machine_config &mconfig, device_type type, const char } -z8601_device::z8601_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) +z8601_device::z8601_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : z8_device(mconfig, Z8601, tag, owner, clock, 0x800, false) { } -ub8830d_device::ub8830d_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) +ub8830d_device::ub8830d_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : z8_device(mconfig, UB8830D, tag, owner, clock, 0x800, false) { } -z8611_device::z8611_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) +z8611_device::z8611_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : z8_device(mconfig, Z8611, tag, owner, clock, 0x1000, false) { } -z8671_device::z8671_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) +z8671_device::z8671_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : z8_device(mconfig, Z8671, tag, owner, clock, 0x800, true) { } @@ -223,13 +223,13 @@ const tiny_rom_entry *z8671_device::device_rom_region() const } -z8681_device::z8681_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) +z8681_device::z8681_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : z8_device(mconfig, Z8681, tag, owner, clock, 0, false) { } -z8682_device::z8682_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) +z8682_device::z8682_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : z8_device(mconfig, Z8682, tag, owner, clock, 0x800, true) { } @@ -246,7 +246,7 @@ const tiny_rom_entry *z8682_device::device_rom_region() const } -z86e02_device::z86e02_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) +z86e02_device::z86e02_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : z8_device(mconfig, Z86E02, tag, owner, clock, 0x200, false) { } diff --git a/src/devices/cpu/z8/z8.h b/src/devices/cpu/z8/z8.h index c092cfd4066..ad4c2dd6e7f 100644 --- a/src/devices/cpu/z8/z8.h +++ b/src/devices/cpu/z8/z8.h @@ -39,7 +39,7 @@ protected: }; // construction/destruction - z8_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t rom_size, bool preprogrammed); + z8_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, const XTAL &clock, uint32_t rom_size, bool preprogrammed); // device-level overrides virtual void device_start() override; @@ -383,28 +383,28 @@ private: class z8601_device : public z8_device { public: - z8601_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + z8601_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); }; class ub8830d_device : public z8_device { public: - ub8830d_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + ub8830d_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); }; class z8611_device : public z8_device { public: - z8611_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + z8611_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); }; class z8671_device : public z8_device { public: - z8671_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + z8671_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); protected: const tiny_rom_entry *device_rom_region() const override; @@ -414,14 +414,14 @@ protected: class z8681_device : public z8_device { public: - z8681_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + z8681_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); }; class z8682_device : public z8_device { public: - z8682_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + z8682_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); protected: const tiny_rom_entry *device_rom_region() const override; @@ -431,7 +431,7 @@ protected: class z86e02_device : public z8_device { public: - z86e02_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + z86e02_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock); }; |