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/advision.h | |
parent | 67c425e90757876a6716b7867df30c0149912e74 (diff) |
Merge of MESS sources (no whatsnew)
Diffstat (limited to 'src/mess/includes/advision.h')
-rw-r--r-- | src/mess/includes/advision.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/src/mess/includes/advision.h b/src/mess/includes/advision.h new file mode 100644 index 00000000000..4a09e9c2db1 --- /dev/null +++ b/src/mess/includes/advision.h @@ -0,0 +1,73 @@ +/***************************************************************************** + * + * includes/advision.h + * + ****************************************************************************/ + +#ifndef __ADVISION__ +#define __ADVISION__ + +#include "sound/dac.h" + +#define SCREEN_TAG "screen" +#define I8048_TAG "i8048" +#define COP411_TAG "cop411" + +class advision_state : public driver_device +{ +public: + advision_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag), + m_maincpu(*this, I8048_TAG), + m_soundcpu(*this, COP411_TAG), + m_dac(*this, "dac") + { } + + required_device<cpu_device> m_maincpu; + required_device<cpu_device> m_soundcpu; + required_device<dac_device> m_dac; + + virtual void machine_start(); + virtual void machine_reset(); + + virtual void video_start(); + UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); + + void update_dac(); + void vh_write(int data); + void vh_update(int x); + + DECLARE_READ8_MEMBER( ext_ram_r ); + DECLARE_WRITE8_MEMBER( ext_ram_w ); + DECLARE_READ8_MEMBER( controller_r ); + DECLARE_WRITE8_MEMBER( bankswitch_w ); + DECLARE_WRITE8_MEMBER( av_control_w ); + DECLARE_READ8_MEMBER( vsync_r ); + DECLARE_READ8_MEMBER( sound_cmd_r ); + DECLARE_WRITE8_MEMBER( sound_g_w ); + DECLARE_WRITE8_MEMBER( sound_d_w ); + + /* external RAM state */ + UINT8 *m_ext_ram; + int m_rambank; + + /* video state */ + int m_frame_count; + int m_frame_start; + int m_video_enable; + int m_video_bank; + int m_video_hpos; + UINT8 m_led_latch[8]; + UINT8 *m_display; + + /* sound state */ + int m_sound_cmd; + int m_sound_d; + int m_sound_g; +}; + +/*----------- defined in video/advision.c -----------*/ + +PALETTE_INIT( advision ); + +#endif |