From 065a1a392e773f8ad0e4151ddeacc9c0c62c1fba Mon Sep 17 00:00:00 2001 From: Curt Coder Date: Tue, 29 Apr 2014 10:28:13 +0000 Subject: [PATCH] mc6847: Added memory region for chargen ROM. (nw) --- src/emu/video/mc6847.c | 5 +++-- src/emu/video/mc6847.h | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/emu/video/mc6847.c b/src/emu/video/mc6847.c index 96328efc97a..730499cf0e8 100644 --- a/src/emu/video/mc6847.c +++ b/src/emu/video/mc6847.c @@ -565,8 +565,9 @@ const rom_entry *mc6847_base_device::device_rom_region() const // ctor //------------------------------------------------- -mc6847_base_device::mc6847_base_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const UINT8 *fontdata, double tpfs, const char *shortname, const char *source) - : mc6847_friend_device(mconfig, type, name, tag, owner, clock, fontdata, (type == MC6847T1_NTSC) || (type == MC6847T1_PAL), tpfs, 25+191, true, shortname, source) +mc6847_base_device::mc6847_base_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const UINT8 *fontdata, double tpfs, const char *shortname, const char *source) : + mc6847_friend_device(mconfig, type, name, tag, owner, clock, fontdata, (type == MC6847T1_NTSC) || (type == MC6847T1_PAL), tpfs, 25+191, true, shortname, source), + m_char_rom(*this, "chargen") { m_palette = s_palette; diff --git a/src/emu/video/mc6847.h b/src/emu/video/mc6847.h index ee1ba991e7d..530514de765 100644 --- a/src/emu/video/mc6847.h +++ b/src/emu/video/mc6847.h @@ -554,6 +554,8 @@ protected: } private: + required_memory_region m_char_rom; + struct video_scanline { UINT8 m_sample_count;