diff options
author | 2012-08-21 10:41:19 +0000 | |
---|---|---|
committer | 2012-08-21 10:41:19 +0000 | |
commit | 7285b359d259b2ae0fdf85096571c386ec8c991a (patch) | |
tree | a027aff57f1a255f9ec6cfd3b68cabe4b6683998 /src/mess/includes/jupiter.h | |
parent | 67c425e90757876a6716b7867df30c0149912e74 (diff) |
Merge of MESS sources (no whatsnew)
Diffstat (limited to 'src/mess/includes/jupiter.h')
-rw-r--r-- | src/mess/includes/jupiter.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/mess/includes/jupiter.h b/src/mess/includes/jupiter.h new file mode 100644 index 00000000000..87bd5f5f52d --- /dev/null +++ b/src/mess/includes/jupiter.h @@ -0,0 +1,57 @@ +#pragma once + +#ifndef __JUPITER__ +#define __JUPITER__ + +#define MCM6571AP_TAG "vid125_6c" +#define S6820_TAG "vid125_4a" +#define Z80_TAG "cpu126_4c" +#define INS1771N1_TAG "fdi027_4c" +#define MC6820P_TAG "fdi027_4b" +#define MC6850P_TAG "rsi068_6a" +#define MC6821P_TAG "sdm058_4b" + +class jupiter2_state : public driver_device +{ +public: + jupiter2_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag), + m_maincpu(*this, MCM6571AP_TAG) + { } + + required_device<cpu_device> m_maincpu; + + virtual void machine_start(); + DECLARE_DRIVER_INIT(jupiter); +}; + +class jupiter3_state : public driver_device +{ +public: + jupiter3_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag), + m_maincpu(*this, Z80_TAG), + m_p_videoram(*this, "p_videoram"), + m_p_ram(*this, "p_ram") + { } + + required_device<cpu_device> m_maincpu; + + DECLARE_WRITE8_MEMBER(kbd_put); + DECLARE_READ8_MEMBER(status_r); + DECLARE_READ8_MEMBER(key_r); + DECLARE_READ8_MEMBER(ff_r); + UINT8 m_term_data; + + required_shared_ptr<UINT8> m_p_videoram; + required_shared_ptr<UINT8> m_p_ram; + const UINT8 *m_p_chargen; + + virtual void machine_reset(); + virtual void video_start(); + UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); + + DECLARE_DRIVER_INIT(jupiter3); +}; + +#endif |