diff options
author | 2012-12-28 12:02:05 +0000 | |
---|---|---|
committer | 2012-12-28 12:02:05 +0000 | |
commit | a45204f19c818d6591bb97d6b7a2ef637577e853 (patch) | |
tree | 3c6fe0a4291e90fed99c55768a102f4e00f2317b /src/emu/machine/ram.h | |
parent | 28b9ef0a6d46ed074f85673d1f5d3d783fb8cc8b (diff) |
[COCO1/2] Fixing garbled display when displaying video ram above $8000 and in
ROM/RAM mode (mametesters #5031)
Diffstat (limited to 'src/emu/machine/ram.h')
-rw-r--r-- | src/emu/machine/ram.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emu/machine/ram.h b/src/emu/machine/ram.h index a144fa6cd47..fefb440d5b5 100644 --- a/src/emu/machine/ram.h +++ b/src/emu/machine/ram.h @@ -58,6 +58,10 @@ public: static UINT32 parse_string(const char *s); UINT32 default_size(void) const; const char *extra_options(void) const { return m_extra_options; } + + // read/write + UINT8 read(offs_t offset) { return m_pointer[offset % m_size]; } + void write(offs_t offset, UINT8 data) { m_pointer[offset % m_size] = data; } // inline configuration helpers static void static_set_default_size(device_t &device, const char *default_size) { downcast<ram_device &>(device).m_default_size = default_size; } |