summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2015-02-10 19:16:56 +0100
committer hap <happppp@users.noreply.github.com>2015-02-10 19:16:56 +0100
commit1a52f39e3df8bed3e5ef95b9f24d3fb7fffd44d0 (patch)
treed7f15ae69291e77bd42223c67414cdaf14c8e3a4
parent99516900ae378a262b02d8ea217e088fc0c20bfe (diff)
ucom4/amis2000 added clockdivider
-rw-r--r--src/emu/cpu/amis2000/amis2000.h2
-rw-r--r--src/emu/cpu/ucom4/ucom4.h2
-rw-r--r--src/mess/drivers/wildfire.c10
3 files changed, 13 insertions, 1 deletions
diff --git a/src/emu/cpu/amis2000/amis2000.h b/src/emu/cpu/amis2000/amis2000.h
index 4e0c9ff521c..e55248e809e 100644
--- a/src/emu/cpu/amis2000/amis2000.h
+++ b/src/emu/cpu/amis2000/amis2000.h
@@ -51,6 +51,8 @@ protected:
virtual void device_reset();
// device_execute_interface overrides
+ virtual UINT64 execute_clocks_to_cycles(UINT64 clocks) const { return (clocks + 4 - 1) / 4; } // 4 cycles per machine cycle
+ virtual UINT64 execute_cycles_to_clocks(UINT64 cycles) const { return (cycles * 4); } // "
virtual UINT32 execute_min_cycles() const { return 1; }
virtual UINT32 execute_max_cycles() const { return 2; }
virtual UINT32 execute_input_lines() const { return 1; }
diff --git a/src/emu/cpu/ucom4/ucom4.h b/src/emu/cpu/ucom4/ucom4.h
index f4d8c482c50..92b73e1e270 100644
--- a/src/emu/cpu/ucom4/ucom4.h
+++ b/src/emu/cpu/ucom4/ucom4.h
@@ -105,6 +105,8 @@ protected:
virtual void device_reset();
// device_execute_interface overrides
+ virtual UINT64 execute_clocks_to_cycles(UINT64 clocks) const { return (clocks + 4 - 1) / 4; } // 4 cycles per machine cycle
+ virtual UINT64 execute_cycles_to_clocks(UINT64 cycles) const { return (cycles * 4); } // "
virtual UINT32 execute_min_cycles() const { return 1; }
virtual UINT32 execute_max_cycles() const { return 2; }
virtual UINT32 execute_input_lines() const { return 1; }
diff --git a/src/mess/drivers/wildfire.c b/src/mess/drivers/wildfire.c
index f2c8f518951..fa74136c4a8 100644
--- a/src/mess/drivers/wildfire.c
+++ b/src/mess/drivers/wildfire.c
@@ -5,6 +5,14 @@
Parker Brothers Wildfire, by Bob and Holly Doyle (prototype), and Garry Kitchen
* AMI S2150, labeled C10641
+ x
+
+
+ TODO:
+ - no sound
+ - flipper buttons aren't working correctly
+ - some 7segs digits are wrong (mcu on-die decoder is customizable?)
+ - MCU clock is unknown
***************************************************************************/
@@ -16,7 +24,7 @@
// master clock is a single stage RC oscillator: R=?K, C=?pf,
// S2150 default frequency is 850kHz
-#define MASTER_CLOCK (850000/4)
+#define MASTER_CLOCK (850000)
class wildfire_state : public driver_device