-
Notifications
You must be signed in to change notification settings - Fork 63
/
statsave.tbl
executable file
·206 lines (197 loc) · 7.71 KB
/
statsave.tbl
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
#define NP2STATUS_VERSION 10850
static const NP2FHDR np2flagdef = {
"Neko Project II",
"create by NP2.EXE",
NP2STATUS_VERSION};
static const PROCTBL evtproc[] = {
{PROCID('e','s','c','0'), screendisp},
{PROCID('e','s','c','1'), screenvsync},
{PROCID('e','p','i','t'), systimer},
{PROCID('e','b','e','p'), beeponeshot},
{PROCID('e','r','s','1'), rs232ctimer},
{PROCID('e','m','u','s'), mouseint},
{PROCID('e','k','e','y'), keyboard_callback},
{PROCID('e','p','i','c'), picmask},
{PROCID('e','g','s','w'), gdcslavewait},
{PROCID('e','f','b','o'), fdbiosout},
{PROCID('e','f','i','w'), fdc_intwait},
{PROCID('e','m','d','0'), midiwaitout},
{PROCID('e','m','d','1'), midiint},
#if !defined(DISABLE_SOUND)
{PROCID('e','m','g','n'), musicgenint},
{PROCID('e','f','m','a'), fmport_a},
{PROCID('e','f','m','b'), fmport_b},
{PROCID('e','c','s','d'), cs4231_dma},
{PROCID('e','p','8','6'), pcm86_cb},
{PROCID('e','a','m','d'), amd98int},
#ifdef SUPPORT_SOUND_SB16
{PROCID('e','c','t','d'), ct1741_dma},
#endif
#endif
#if defined(SUPPORT_SASI)
{PROCID('e','s','a','s'), sasiioint},
#endif
#if defined(SUPPORT_SCSI)
{PROCID('e','s','c','s'), scsiioint},
#endif
#if defined(SUPPORT_PC9861K)
{PROCID('e','p','k','1'), pc9861ch1cb},
{PROCID('e','p','k','2'), pc9861ch2cb},
#endif
};
static const ENUMTBL evtnum[] = {
{PROCID('m','a','i','n'), NEVENT_FLAMES},
{PROCID('p','i','t',' '), NEVENT_ITIMER},
{PROCID('b','e','e','p'), NEVENT_BEEP},
{PROCID('r','2','3','2'), NEVENT_RS232C},
{PROCID('m','g','e','n'), NEVENT_MUSICGEN},
{PROCID('f','m','-','a'), NEVENT_FMTIMERA},
{PROCID('f','m','-','b'), NEVENT_FMTIMERB},
{PROCID('f','m','2','a'), NEVENT_FMTIMER2A},
{PROCID('f','m','2','b'), NEVENT_FMTIMER2B},
{PROCID('m','o','u','s'), NEVENT_MOUSE},
{PROCID('k','e','y',' '), NEVENT_KEYBOARD},
{PROCID('m','i','d','w'), NEVENT_MIDIWAIT},
{PROCID('m','i','d','i'), NEVENT_MIDIINT},
{PROCID('p','i','c','m'), NEVENT_PICMASK},
{PROCID('4','2','3','1'), NEVENT_CS4231},
{PROCID('g','d','c','s'), NEVENT_GDCSLAVE},
{PROCID('f','d','b','b'), NEVENT_FDBIOSBUSY},
{PROCID('f','d','c','i'), NEVENT_FDCINT},
{PROCID('k','c','h','1'), NEVENT_PC9861CH1},
{PROCID('k','c','h','2'), NEVENT_PC9861CH2},
{PROCID('p','c','m','8'), NEVENT_86PCM},
{PROCID('s','a','s','i'), NEVENT_SASIIO},
{PROCID('s','c','s','i'), NEVENT_SCSIIO},
#ifdef SUPPORT_SOUND_SB16
{PROCID('1','7','4','1'), NEVENT_CT1741},
#endif
};
static const PROCTBL dmaproc[] = {
{PROCID('d','o','d','m'), dma_dummyout},
{PROCID('d','i','d','m'), dma_dummyin},
{PROCID('d','e','d','m'), dma_dummyproc},
{PROCID('d','o','f','d'), fdc_dataread},
{PROCID('d','i','f','d'), fdc_datawrite},
{PROCID('d','e','f','d'), fdc_dmafunc},
#if !defined(DISABLE_SOUND)
{PROCID('d','e','c','s'), cs4231dmafunc},
#if defined(SUPPORT_SOUND_SB16)
{PROCID('d','e','c','t'), ct1741dmafunc},
#endif
#endif
#if defined(SUPPORT_SASI)
{PROCID('d','o','s','a'), sasi_dataread},
{PROCID('d','i','s','a'), sasi_datawrite},
{PROCID('d','e','s','a'), sasi_dmafunc},
#endif
};
static const SFENTRY np2tbl[] = {
{"PCCORE", 0, STATFLAG_BIN|STATFLAG_BWD_COMPATIBLE, &pccore, sizeof(pccore)},
{"CPU286", 0, STATFLAG_BIN, &CPU_STATSAVE, sizeof(CPU_STATSAVE)},
#if defined(CPUCORE_IA32)
{"CPUID", 0, STATFLAG_BIN, &i386cpuid, sizeof(i386cpuid)},
{"CPUMSR", 0, STATFLAG_BIN, &i386msr, sizeof(i386msr)},
#endif
#if defined(SUPPORT_IA32_HAXM)
{"CPUHAXM", 0, STATFLAG_BIN, &np2haxstat, sizeof(np2haxstat)},
#endif
{"MEMORY", 0, STATFLAG_MEM, NULL, 0x130000},
{"EXTMEM", 0, STATFLAG_EXT, NULL, 0},
#if defined(SUPPORT_PC9821)
#if defined(SUPPORT_IA32_HAXM)
{"VRAMEX", 0, STATFLAG_BIN, vramex_base, sizeof(vramex_base)},
#else
{"VRAMEX", 0, STATFLAG_BIN, vramex, sizeof(vramex)},
#endif
#endif
{"ARTIC", 0, STATFLAG_BIN, &artic, sizeof(artic)},
{"CGROM", 0, STATFLAG_BIN, &cgrom, sizeof(cgrom)},
{"CGWINDOW", 0, STATFLAG_BIN, &cgwindow, sizeof(cgwindow)},
{"CRTC", 0, STATFLAG_BIN, &grcg, sizeof(grcg)},
{"CRTC2", 0, STATFLAG_BIN, &crtc, sizeof(crtc)},
{"DMAC", 0, STATFLAG_DMA, &dmac, sizeof(dmac)},
{"EGC", 0, STATFLAG_EGC, NULL, 0},
{"EPSON", 0, STATFLAG_EPSON, NULL, 0},
{"FDC", 0, STATFLAG_BIN, &fdc, sizeof(fdc)},
{"EMSIO", 0, STATFLAG_BIN, &emsio, sizeof(emsio)},
{"GDC1", 0, STATFLAG_BIN, &gdc, sizeof(gdc)},
{"GDC2", 0, STATFLAG_BIN, &gdcs, sizeof(gdcs)},
{"PIT", 0, STATFLAG_BIN, &pit, sizeof(pit)},
{"MOUSE", 0, STATFLAG_BIN, &mouseif, sizeof(mouseif)},
{"NECIO", 0, STATFLAG_BIN, &necio, sizeof(necio)},
{"NMIIO", 0, STATFLAG_BIN, &nmiio, sizeof(nmiio)},
{"NP2SYSPORT", 0, STATFLAG_BIN, &np2sysp, sizeof(np2sysp)},
{"PIC", 0, STATFLAG_BIN, &pic, sizeof(pic)},
{"RS232C", 0, STATFLAG_BIN, &rs232c, sizeof(rs232c)},
#if defined(SUPPORT_RS232C_FIFO)
{"RS232CFIFO", 0, STATFLAG_BIN, &rs232cfifo, sizeof(rs232cfifo)},
#endif
{"SYSTEMPORT", 0, STATFLAG_BIN, &sysport, sizeof(sysport)},
{"uPD4990", 0, STATFLAG_BIN, &uPD4990, sizeof(uPD4990)},
#if defined(SUPPORT_HRTIMER)
{"uPD4990HRT", 0, STATFLAG_BIN, &uPD4990HRT, sizeof(uPD4990HRT)},
#endif
#if defined(SUPPORT_PC9821)&&defined(SUPPORT_PCI)
{"PCI", 0, STATFLAG_BIN, &pcidev, sizeof(pcidev)},
#endif
{"VRAMCTRL", 0, STATFLAG_BIN, &vramop, sizeof(vramop)},
{"TEXTRAM", 0, STATFLAG_BIN, &tramflag, sizeof(tramflag)},
{"GAIJI", 0, STATFLAG_GIJ, NULL, 0},
{"EVENT", 0, STATFLAG_EVT, &g_nevent, sizeof(g_nevent)},
{"CALENDAR", 0, STATFLAG_BIN, &cal, sizeof(cal)},
{"KEYSTAT", 0, STATFLAG_BIN, &keyctrl, sizeof(keyctrl)},
{"PALEVENT", 0, STATFLAG_BIN, &palevent, sizeof(palevent)},
{"MPU98II", 0, STATFLAG_BIN, &mpu98, sizeof(mpu98)},
#if defined(SUPPORT_SMPU98)
{"SMPU98", 0, STATFLAG_BIN, &smpu98, sizeof(smpu98)},
#endif
{"CMMPU98", 0, STATFLAG_COM, (void *)0, 0},
{"CMRS232C", 0, STATFLAG_COM, (void *)1, 0},
#if defined(SUPPORT_SMPU98)
{"CMSMPUA", 0, STATFLAG_COM, (void *)2, 0},
{"CMSMPUB", 0, STATFLAG_COM, (void *)3, 0},
#endif
{"FDD", 0, STATFLAG_FDD, NULL, 0},
{"SXSI", 0, STATFLAG_SXSI, NULL, 0},
#if !defined(DISABLE_SOUND)
{"FMBOARD", 0, STATFLAG_FM, NULL, 0},
{"BEEP", 0, STATFLAG_BIN, &g_beep, sizeof(g_beep)},
#endif
#if defined(SUPPORT_IDEIO)
{"IDE", 0, STATFLAG_BIN|STATFLAG_BWD_COMPATIBLE, &ideio, sizeof(ideio)},
#endif
#if defined(SUPPORT_SASI)
{"SASI", 0, STATFLAG_BIN, &sasiio, sizeof(sasiio)},
#endif
#if defined(SUPPORT_SCSI)
{"SCSI", 0, STATFLAG_BIN, &scsiio, sizeof(scsiio)},
#endif
#if defined(SUPPORT_PC9861K)
{"PC9861K", 0, STATFLAG_BIN, &pc9861k, sizeof(pc9861k)},
#endif
#if defined(SUPPORT_LGY98)
{"LGY98", 0, STATFLAG_BIN, &lgy98, sizeof(lgy98)},
{"LGY98CFG", 0, STATFLAG_BIN, &lgy98cfg, sizeof(lgy98cfg)},
#endif
#if defined(SUPPORT_WAB)
{"WAB", 0, STATFLAG_BIN, &np2wab, sizeof(np2wab)},
{"WABCFG", 0, STATFLAG_BIN, &np2wabcfg, sizeof(np2wabcfg)},
#endif
#if defined(SUPPORT_CL_GD5430)
{"NP2CLVGA", 0, STATFLAG_BIN|STATFLAG_BWD_COMPATIBLE, &np2clvga, sizeof(np2clvga)},
{"CLVGA", 0, STATFLAG_BIN, cirrusvga_statsavebuf, sizeof(cirrusvga_statsavebuf)},
#endif
#if defined(SUPPORT_HOSTDRV)
{"HOSTDRV", 0, STATFLAG_HDRV, NULL, 0},
#endif
#if defined(BIOS_IO_EMULATION)
{"BIOSIOEMU", 0, STATFLAG_BIN, &biosioemu, sizeof(biosioemu)},
#endif
#if defined(SUPPORT_PC9821)&&defined(SUPPORT_PCI)
{"PEGC", 0, STATFLAG_BIN, &pegc, sizeof(pegc)},
#endif
#if defined(USE_CUSTOM_HOOKINST)
{"BIOSHOOK", 0, STATFLAG_BIN, &bioshookinfo, sizeof(bioshookinfo)},
#endif
{"TERMINATE", 0, STATFLAG_TERM, NULL, 0}};