diff options
author | Aaron Giles <aaron@aarongiles.com> | 2012-02-25 19:18:06 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2012-02-25 19:18:06 +0000 |
commit | 8d021050041cd131d618c2fc52a31c2b90949c69 (patch) | |
tree | 74f74a9f732db678e57a73ec7c57f3b091903e43 | |
parent | a3fa2781de41c7bdebaa715c824349a6876f27d4 (diff) |
Added member read/write handlers to the 6532 RIOT.
-rw-r--r-- | src/emu/machine/6532riot.c | 10 | ||||
-rw-r--r-- | src/emu/machine/6532riot.h | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/emu/machine/6532riot.c b/src/emu/machine/6532riot.c index c8a2dfcdbb1..429acba1631 100644 --- a/src/emu/machine/6532riot.c +++ b/src/emu/machine/6532riot.c @@ -162,6 +162,11 @@ WRITE8_DEVICE_HANDLER( riot6532_w ) via->reg_w(offset, data); } +WRITE8_MEMBER( riot6532_device::write ) +{ + reg_w(offset, data); +} + void riot6532_device::reg_w(UINT8 offset, UINT8 data) { /* if A4 == 1 and A2 == 1, we are writing to the timer */ @@ -248,6 +253,11 @@ READ8_DEVICE_HANDLER( riot6532_r ) return via->reg_r(offset); } +READ8_MEMBER( riot6532_device::read ) +{ + return reg_r(offset); +} + UINT8 riot6532_device::reg_r(UINT8 offset) { UINT8 val = 0; diff --git a/src/emu/machine/6532riot.h b/src/emu/machine/6532riot.h index c86128039b2..88ee8482e93 100644 --- a/src/emu/machine/6532riot.h +++ b/src/emu/machine/6532riot.h @@ -50,6 +50,9 @@ public: // construction/destruction riot6532_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + DECLARE_READ8_MEMBER( read ); + DECLARE_WRITE8_MEMBER( write ); + UINT8 reg_r(UINT8 offset); void reg_w(UINT8 offset, UINT8 data); |