summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/6522via.c
diff options
context:
space:
mode:
author Ryan Holtz <rholtz@batcountryentertainment.com>2010-08-25 01:07:37 +0000
committer Ryan Holtz <rholtz@batcountryentertainment.com>2010-08-25 01:07:37 +0000
commit64a1b459862da306ee03f7729d5647190e9f0268 (patch)
tree826b1edf9fc3febc32f4c53f4a6088ec5f633574 /src/emu/machine/6522via.c
parent2bb61f771c7776ae62bcb3764464b0acd42bffd2 (diff)
Updated the 6526 CIA device to no longer be legacy. [Harmony]
Not in whatsnew: Tested upscope, still works properly.
Diffstat (limited to 'src/emu/machine/6522via.c')
-rw-r--r--src/emu/machine/6522via.c70
1 files changed, 35 insertions, 35 deletions
diff --git a/src/emu/machine/6522via.c b/src/emu/machine/6522via.c
index 128193ec2b4..c017686477b 100644
--- a/src/emu/machine/6522via.c
+++ b/src/emu/machine/6522via.c
@@ -287,6 +287,41 @@ void via6522_device::device_start()
}
+//-------------------------------------------------
+// device_reset - device-specific reset
+//-------------------------------------------------
+
+void via6522_device::device_reset()
+{
+ m_in_a = 0;
+ m_in_ca1 = 0;
+ m_in_ca2 = 0;
+ m_out_a = 0;
+ m_out_ca2 = 0;
+ m_ddr_a = 0;
+ m_in_b = 0;
+ m_in_cb1 = 0;
+ m_in_cb2 = 0;
+ m_out_b = 0;
+ m_out_cb2 = 0;
+ m_ddr_b = 0;
+
+ m_t1cl = 0;
+ m_t1ch = 0;
+ m_t2cl = 0;
+ m_t2ch = 0;
+
+ m_sr = 0;
+ m_pcr = 0;
+ m_acr = 0;
+ m_ier = 0;
+ m_ifr = 0;
+ m_t1_active = 0;
+ m_t2_active = 0;
+ m_shift_counter = 0;
+}
+
+
/*-------------------------------------------------
via_set_int - external interrupt check
-------------------------------------------------*/
@@ -478,41 +513,6 @@ void via6522_device::t2_timeout()
}
-//-------------------------------------------------
-// device_reset - device-specific reset
-//-------------------------------------------------
-
-void via6522_device::device_reset()
-{
- m_in_a = 0;
- m_in_ca1 = 0;
- m_in_ca2 = 0;
- m_out_a = 0;
- m_out_ca2 = 0;
- m_ddr_a = 0;
- m_in_b = 0;
- m_in_cb1 = 0;
- m_in_cb2 = 0;
- m_out_b = 0;
- m_out_cb2 = 0;
- m_ddr_b = 0;
-
- m_t1cl = 0;
- m_t1ch = 0;
- m_t2cl = 0;
- m_t2ch = 0;
-
- m_sr = 0;
- m_pcr = 0;
- m_acr = 0;
- m_ier = 0;
- m_ifr = 0;
- m_t1_active = 0;
- m_t2_active = 0;
- m_shift_counter = 0;
-}
-
-
/*-------------------------------------------------
via_r - CPU interface for VIA read
-------------------------------------------------*/