-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathio_smsu.h
62 lines (56 loc) · 1.13 KB
/
io_smsu.h
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
61
62
#pragma once
#define PORT_BUTTON_UP 1
#define PORT_BUTTON_DOWN 2
#define PORT_BUTTON_LEFT 4
#define PORT_BUTTON_RIGHT 8
#define PORT_BUTTON_TL 16
#define PORT_BUTTON_TR 32
#define PORT_BUTTON_TH 64
typedef struct {
int data;
int a0;
int a6;
int a7;
int wr;
int rd;
int iorq;
int mreq;
int cont1;
int cont2;
int killga;
int csram;
int reset;
int port_a;
int port_b;
} io_smsu_input_t;
typedef struct {
io_smsu_input_t input;
io_smsu_input_t o_input;
int reg_3e_2[2];
int reg_3e_3[2];
int reg_3e_4[2];
int reg_3e_5[2];
int reg_3e_6[2];
int reg_3e_7[2];
int reg_3f_0[2];
int reg_3f_1[2];
int reg_3f_2[2];
int reg_3f_3[2];
int reg_3f_4[2];
int reg_3f_5[2];
int reg_3f_6[2];
int reg_3f_7[2];
int o_data;
int o_data_dir;
int o_ce0;
int o_ce1;
int o_ce2;
int o_ce3;
int o_ce4;
int o_port_a;
int o_port_a_d;
int o_port_b;
int o_port_b_d;
int o_hl;
} io_smsu_t;
void IO_SMSU_Clock2(io_smsu_t *chip);