diff options
author | 2010-10-19 13:03:57 +0000 | |
---|---|---|
committer | 2010-10-19 13:03:57 +0000 | |
commit | aa8bd5fbd375e7afae3f78173a3a2d047b062e59 (patch) | |
tree | 886b0ddd8047242f049335d5c46d584b43c7442b /src/emu/cpu/cosmac | |
parent | 0f268291ed957b76c35a8f91915053dda1147c67 (diff) |
Refactored the CDP1869 chip into a C++ device. [Curt Coder]
Diffstat (limited to 'src/emu/cpu/cosmac')
-rw-r--r-- | src/emu/cpu/cosmac/cosmac.c | 10 | ||||
-rw-r--r-- | src/emu/cpu/cosmac/cosmac.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/emu/cpu/cosmac/cosmac.c b/src/emu/cpu/cosmac/cosmac.c index bd8d1b21bba..089458467ad 100644 --- a/src/emu/cpu/cosmac/cosmac.c +++ b/src/emu/cpu/cosmac/cosmac.c @@ -555,6 +555,16 @@ inline void cosmac_device::write_io_byte(offs_t address, UINT8 data) //************************************************************************** //------------------------------------------------- +// get_memory_address - get current memory address +//------------------------------------------------- + +offs_t cosmac_device::get_memory_address() +{ + // this is valid for INP/OUT opcodes + return R[X]; +} + +//------------------------------------------------- // execute_set_input - //------------------------------------------------- diff --git a/src/emu/cpu/cosmac/cosmac.h b/src/emu/cpu/cosmac/cosmac.h index a057f43990e..e2e8888be3e 100644 --- a/src/emu/cpu/cosmac/cosmac.h +++ b/src/emu/cpu/cosmac/cosmac.h @@ -189,6 +189,7 @@ class cosmac_device : public cpu_device public: // public interfaces + offs_t get_memory_address(); protected: // device-level overrides |