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/ti89.h | |
parent | 67c425e90757876a6716b7867df30c0149912e74 (diff) |
Merge of MESS sources (no whatsnew)
Diffstat (limited to 'src/mess/includes/ti89.h')
-rw-r--r-- | src/mess/includes/ti89.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/src/mess/includes/ti89.h b/src/mess/includes/ti89.h new file mode 100644 index 00000000000..98d70bb6993 --- /dev/null +++ b/src/mess/includes/ti89.h @@ -0,0 +1,66 @@ +/***************************************************************************** + * + * includes/ti89.h + * + ****************************************************************************/ + +#ifndef TI89_H_ +#define TI89_H_ + +#include "machine/intelfsh.h" + +class ti68k_state : public driver_device +{ +public: + ti68k_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag), + m_maincpu(*this, "maincpu"), + m_flash(*this, "flash") + { } + + required_device<cpu_device> m_maincpu; + required_device<sharp_unk128mbit_device> m_flash; + + // hardware versions + enum { m_HW1=1, m_HW2, m_HW3, m_HW4 }; + + // HW specifications + UINT8 m_hw_version; + bool m_flash_mem; + UINT32 m_initial_pc; + + // keyboard + UINT16 m_kb_mask; + UINT8 m_on_key; + + // LCD + UINT8 m_lcd_on; + UINT32 m_lcd_base; + UINT16 m_lcd_width; + UINT16 m_lcd_height; + UINT16 m_lcd_contrast; + + // I/O + UINT16 m_io_hw1[0x10]; + UINT16 m_io_hw2[0x80]; + + // Timer + UINT8 m_timer_on; + UINT8 m_timer_val; + UINT16 m_timer_mask; + + virtual void machine_start(); + virtual void machine_reset(); + UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); + + UINT8 keypad_r (running_machine &machine); + DECLARE_WRITE16_MEMBER ( ti68k_io_w ); + DECLARE_READ16_MEMBER ( ti68k_io_r ); + DECLARE_WRITE16_MEMBER ( ti68k_io2_w ); + DECLARE_READ16_MEMBER ( ti68k_io2_r ); + DECLARE_WRITE16_MEMBER ( flash_w ); + DECLARE_READ16_MEMBER ( flash_r ); + UINT64 m_timer; +}; + +#endif // TI89_H_ |