blob: 7fb18a7fe1e30f56c9505a4780fdecfdb2b70923 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/*****************************************************************************
*
* includes/pc1403.h
*
* Pocket Computer 1403
*
****************************************************************************/
#ifndef PC1403_H_
#define PC1403_H_
#include "machine/nvram.h"
#define CONTRAST (machine.root_device().ioport("DSW0")->read() & 0x07)
class pc1403_state : public driver_device
{
public:
pc1403_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) { }
UINT8 m_portc;
UINT8 m_outa;
int m_power;
UINT8 m_asic[4];
int m_DOWN;
int m_RIGHT;
UINT8 m_reg[0x100];
DECLARE_DRIVER_INIT(pc1403);
};
/*----------- defined in machine/pc1403.c -----------*/
int pc1403_reset(device_t *device);
int pc1403_brk(device_t *device);
void pc1403_outa(device_t *device, int data);
//void pc1403_outb(device_t *device, int data);
void pc1403_outc(device_t *device, int data);
int pc1403_ina(device_t *device);
//int pc1403_inb(device_t *device);
MACHINE_START( pc1403 );
DECLARE_READ8_HANDLER(pc1403_asic_read);
DECLARE_WRITE8_HANDLER(pc1403_asic_write);
/*----------- defined in video/pc1403.c -----------*/
VIDEO_START( pc1403 );
SCREEN_UPDATE_IND16( pc1403 );
DECLARE_READ8_HANDLER(pc1403_lcd_read);
DECLARE_WRITE8_HANDLER(pc1403_lcd_write);
#endif /* PC1403_H_ */
|