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/huebler.h | |
parent | 67c425e90757876a6716b7867df30c0149912e74 (diff) |
Merge of MESS sources (no whatsnew)
Diffstat (limited to 'src/mess/includes/huebler.h')
-rw-r--r-- | src/mess/includes/huebler.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/mess/includes/huebler.h b/src/mess/includes/huebler.h new file mode 100644 index 00000000000..1ea6b69586d --- /dev/null +++ b/src/mess/includes/huebler.h @@ -0,0 +1,49 @@ +#ifndef __HUEBLER__ +#define __HUEBLER__ + +#define SCREEN_TAG "screen" +#define Z80_TAG "z80" +#define Z80CTC_TAG "z80ctc" +#define Z80SIO_TAG "z80sio" +#define Z80PIO1_TAG "z80pio1" +#define Z80PIO2_TAG "z80pio2" + +#include "imagedev/cassette.h" + +class amu880_state : public driver_device +{ +public: + amu880_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag), + m_cassette(*this, CASSETTE_TAG), + m_key_d6(0), + m_key_d7(0), + m_key_a8(1) + , + m_video_ram(*this, "video_ram"){ } + + required_device<cassette_image_device> m_cassette; + + virtual void machine_start(); + + virtual void video_start(); + UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); + + DECLARE_READ8_MEMBER( keyboard_r ); + + void scan_keyboard(); + + // keyboard state + const UINT8 *m_kb_rom; + int m_key_d6; + int m_key_d7; + int m_key_a4; + int m_key_a5; + int m_key_a8; + + // video state + required_shared_ptr<UINT8> m_video_ram; + const UINT8 *m_char_rom; +}; + +#endif |