diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-06-22 21:01:53 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-06-22 21:01:53 -0400 |
commit | ef0ead48d183326ebc871560cb6fd0051ffff2ea (patch) | |
tree | b4868271a27ab6a3bad27888c17607d35608f865 /src/devices/cpu | |
parent | 94d41906717cef311443bdf3ddd9a204824a68b0 (diff) |
cidx628: Make this display something again
mcs51: Distinguish AT89C52/S52 device types (nw)
Diffstat (limited to 'src/devices/cpu')
-rw-r--r-- | src/devices/cpu/mcs51/mcs51.cpp | 12 | ||||
-rw-r--r-- | src/devices/cpu/mcs51/mcs51.h | 16 |
2 files changed, 28 insertions, 0 deletions
diff --git a/src/devices/cpu/mcs51/mcs51.cpp b/src/devices/cpu/mcs51/mcs51.cpp index 6ac3ca48e5d..b79dab6228f 100644 --- a/src/devices/cpu/mcs51/mcs51.cpp +++ b/src/devices/cpu/mcs51/mcs51.cpp @@ -234,6 +234,8 @@ DEFINE_DEVICE_TYPE(I87C51, i87c51_device, "i87c51", "Intel I87C51") DEFINE_DEVICE_TYPE(I80C32, i80c32_device, "i80c32", "Intel I80C32") DEFINE_DEVICE_TYPE(I80C52, i80c52_device, "i80c52", "Intel I80C52") DEFINE_DEVICE_TYPE(I87C52, i87c52_device, "i87c52", "Intel I87C52") +DEFINE_DEVICE_TYPE(AT89C52, at89c52_device, "at89c52", "Atmel AT89C52") +DEFINE_DEVICE_TYPE(AT89S52, at89s52_device, "at89s52", "Atmel AT89S52") DEFINE_DEVICE_TYPE(AT89C4051, at89c4051_device, "at89c4051", "Atmel AT89C4051") DEFINE_DEVICE_TYPE(DS5002FP, ds5002fp_device, "ds5002fp", "Dallas DS5002FP") @@ -363,6 +365,16 @@ i87c52_device::i87c52_device(const machine_config &mconfig, const char *tag, dev { } +at89c52_device::at89c52_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) + : i80c52_device(mconfig, AT89C52, tag, owner, clock, 13, 8) +{ +} + +at89s52_device::at89s52_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) + : i80c52_device(mconfig, AT89S52, tag, owner, clock, 13, 8) +{ +} + at89c4051_device::at89c4051_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : i80c51_device(mconfig, AT89C4051, tag, owner, clock, 12, 7) { diff --git a/src/devices/cpu/mcs51/mcs51.h b/src/devices/cpu/mcs51/mcs51.h index a0fa68d02f9..cb3c7f635f1 100644 --- a/src/devices/cpu/mcs51/mcs51.h +++ b/src/devices/cpu/mcs51/mcs51.h @@ -367,6 +367,8 @@ DECLARE_DEVICE_TYPE(I87C51, i87c51_device) DECLARE_DEVICE_TYPE(I80C32, i80c32_device) DECLARE_DEVICE_TYPE(I80C52, i80c52_device) DECLARE_DEVICE_TYPE(I87C52, i87c52_device) +DECLARE_DEVICE_TYPE(AT89C52, at89c52_device) +DECLARE_DEVICE_TYPE(AT89S52, at89s52_device) /* 4k internal perom and 128 internal ram and 2 analog comparators */ DECLARE_DEVICE_TYPE(AT89C4051, at89c4051_device) @@ -486,6 +488,20 @@ public: i87c52_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); }; +class at89c52_device : public i80c52_device +{ +public: + // construction/destruction + at89c52_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); +}; + +class at89s52_device : public i80c52_device +{ +public: + // construction/destruction + at89s52_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); +}; + class at89c4051_device : public i80c51_device { public: |