mirror of
https://github.com/holub/mame
synced 2025-05-22 21:58:57 +03:00
55 lines
1.2 KiB
C++
55 lines
1.2 KiB
C++
/*****************************************************************************
|
|
*
|
|
* includes/pc1251.h
|
|
*
|
|
* Pocket Computer 1251
|
|
*
|
|
****************************************************************************/
|
|
|
|
#ifndef PC1251_H_
|
|
#define PC1251_H_
|
|
|
|
#include "machine/nvram.h"
|
|
|
|
#define PC1251_CONTRAST (machine.root_device().ioport("DSW0")->read() & 0x07)
|
|
|
|
|
|
class pc1251_state : public driver_device
|
|
{
|
|
public:
|
|
pc1251_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[0x100];
|
|
|
|
DECLARE_DRIVER_INIT(pc1251);
|
|
UINT32 screen_update_pc1251(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
|
};
|
|
|
|
|
|
/*----------- defined in machine/pc1251.c -----------*/
|
|
|
|
void pc1251_outa(device_t *device, int data);
|
|
void pc1251_outb(device_t *device, int data);
|
|
void pc1251_outc(device_t *device, int data);
|
|
|
|
int pc1251_reset(device_t *device);
|
|
int pc1251_brk(device_t *device);
|
|
int pc1251_ina(device_t *device);
|
|
int pc1251_inb(device_t *device);
|
|
|
|
MACHINE_START( pc1251 );
|
|
|
|
|
|
/*----------- defined in video/pc1251.c -----------*/
|
|
|
|
DECLARE_READ8_HANDLER(pc1251_lcd_read);
|
|
DECLARE_WRITE8_HANDLER(pc1251_lcd_write);
|
|
|
|
|
|
|
|
#endif /* PC1251_H_ */
|