diff options
Diffstat (limited to 'src/mess/includes/pc1350.h')
-rw-r--r-- | src/mess/includes/pc1350.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/mess/includes/pc1350.h b/src/mess/includes/pc1350.h new file mode 100644 index 00000000000..8824f197a74 --- /dev/null +++ b/src/mess/includes/pc1350.h @@ -0,0 +1,52 @@ +/***************************************************************************** + * + * includes/pc1350.h + * + * Pocket Computer 1350 + * + ****************************************************************************/ + +#ifndef PC1350_H_ +#define PC1350_H_ + +#include "machine/nvram.h" + +#define PC1350_CONTRAST (machine.root_device().ioport("DSW0")->read() & 0x07) + + +class pc1350_state : public driver_device +{ +public: + pc1350_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag) { } + + UINT8 m_outa; + UINT8 m_outb; + int m_power; + UINT8 m_reg[0x1000]; +}; + + +/*----------- defined in machine/pc1350.c -----------*/ + +void pc1350_outa(device_t *device, int data); +void pc1350_outb(device_t *device, int data); +void pc1350_outc(device_t *device, int data); + +int pc1350_brk(device_t *device); +int pc1350_ina(device_t *device); +int pc1350_inb(device_t *device); + +MACHINE_START( pc1350 ); + + +/*----------- defined in video/pc1350.c -----------*/ + +READ8_HANDLER(pc1350_lcd_read); +WRITE8_HANDLER(pc1350_lcd_write); +SCREEN_UPDATE_IND16( pc1350 ); + +int pc1350_keyboard_line_r(running_machine &machine); + + +#endif /* PC1350_H_ */ |