4
#define ADDRESS_MAP_MODERN
7
#include "cpu/z80/z80.h"
8
#include "imagedev/cassette.h"
9
#include "video/m6847.h"
10
#include "sound/ay8910.h"
11
#include "machine/ctronics.h"
12
#include "machine/rescap.h"
13
#include "machine/ram.h"
15
#define SCREEN_TAG "screen"
17
#define AY8910_TAG "u21"
18
#define MC6845_TAG "mc6845"
19
#define MC6847_TAG "u19"
20
#define CENTRONICS_TAG "centronics"
22
#define MC1000_MC6845_VIDEORAM_SIZE 0x800
23
#define MC1000_MC6847_VIDEORAM_SIZE 0x1800
25
class mc1000_state : public driver_device
28
mc1000_state(const machine_config &mconfig, device_type type, const char *tag)
29
: driver_device(mconfig, type, tag),
30
m_maincpu(*this, Z80_TAG),
31
m_vdg(*this, MC6847_TAG),
32
m_crtc(*this, MC6845_TAG),
33
m_centronics(*this, CENTRONICS_TAG),
34
m_cassette(*this, CASSETTE_TAG),
38
required_device<cpu_device> m_maincpu;
39
required_device<device_t> m_vdg;
40
optional_device<device_t> m_crtc;
41
required_device<device_t> m_centronics;
42
required_device<cassette_image_device> m_cassette;
43
required_device<device_t> m_ram;
45
virtual void machine_start();
46
virtual void machine_reset();
48
virtual bool screen_update(screen_device &screen, bitmap_t &bitmap, const rectangle &cliprect);
50
DECLARE_READ8_MEMBER( printer_r );
51
DECLARE_WRITE8_MEMBER( printer_w );
52
DECLARE_WRITE8_MEMBER( mc6845_ctrl_w );
53
DECLARE_WRITE8_MEMBER( mc6847_attr_w );
54
DECLARE_WRITE_LINE_MEMBER( fs_w );
55
DECLARE_WRITE_LINE_MEMBER( hs_w );
56
DECLARE_READ8_MEMBER( videoram_r );
57
DECLARE_WRITE8_MEMBER( keylatch_w );
58
DECLARE_READ8_MEMBER( keydata_r );
76
UINT8 *m_mc6845_video_ram;
77
UINT8 *m_mc6847_video_ram;