diff options
author | 2015-08-03 03:04:16 +0200 | |
---|---|---|
committer | 2015-08-03 03:04:16 +0200 | |
commit | 4e264393b8bf2263e5fadf5fc7da3d8cf939d193 (patch) | |
tree | 10d018bfa4f611cd52969d86b320d9d6c82a9cda /src | |
parent | f341509a746d65291eaeeca411c1000b208b496c (diff) |
revert my commit "small fix for ucom4 port c/d": it's actually the other way around, bidirectional ports are still open drain
Diffstat (limited to 'src')
-rw-r--r-- | src/emu/cpu/ucom4/ucom4.h | 3 | ||||
-rw-r--r-- | src/emu/cpu/ucom4/ucom4op.c | 9 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/emu/cpu/ucom4/ucom4.h b/src/emu/cpu/ucom4/ucom4.h index 47305a4638a..5a2105bd4bc 100644 --- a/src/emu/cpu/ucom4/ucom4.h +++ b/src/emu/cpu/ucom4/ucom4.h @@ -322,9 +322,6 @@ class upd650_cpu_device : public ucom4_cpu_device { public: upd650_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - -protected: - virtual UINT8 input_r(int index); }; diff --git a/src/emu/cpu/ucom4/ucom4op.c b/src/emu/cpu/ucom4/ucom4op.c index d208fcaf80f..6fad00fe20b 100644 --- a/src/emu/cpu/ucom4/ucom4op.c +++ b/src/emu/cpu/ucom4/ucom4op.c @@ -54,15 +54,6 @@ UINT8 ucom4_cpu_device::input_r(int index) return inp & 0xf; } -UINT8 upd650_cpu_device::input_r(int index) -{ - // bidirectional ports are 'push-pull', meaning it will output 0 when it's read - if ((index & 0xf) == NEC_UCOM4_PORTC || (index & 0xf) == NEC_UCOM4_PORTD) - output_w(index, 0); - - return ucom4_cpu_device::input_r(index); -} - void ucom4_cpu_device::output_w(int index, UINT8 data) { index &= 0xf; |