Added 0.030 of PicoDrive and moved license files into root
[cyclone68000.git] / Pico / Pico.h
CommitLineData
15eb0001 1\r
2// -------------------- Pico Library --------------------\r
3\r
4// Pico Megadrive Emulator Library - Header File\r
5\r
6// This code is licensed under the GNU General Public License version 2.0 and the MAME License.\r
7// You can choose the license that has the most advantages for you.\r
8\r
9// SVN repository can be found at http://code.google.com/p/cyclone68000/\r
10\r
11\r
12#ifdef __cplusplus\r
13extern "C" {\r
14#endif\r
15\r
16// Pico.cpp\r
17extern int PicoVer;\r
18extern int PicoOpt;\r
19int PicoInit();\r
20void PicoExit();\r
21int PicoReset();\r
22int PicoFrame();\r
23extern int PicoPad[2]; // Joypads, format is SACB RLDU\r
24extern int (*PicoCram)(int cram); // Callback to convert colour ram 0000bbb0 ggg0rrr0\r
25\r
26// Area.cpp\r
27struct PicoArea { void *data; int len; char *name; };\r
28extern int (*PicoAcb)(struct PicoArea *); // Area callback for each block of memory\r
29extern FILE *PmovFile;\r
30extern int PmovAction;\r
31// &1=for reading &2=for writing &4=volatile &8=non-volatile\r
32int PicoAreaScan(int action,int *pmin);\r
33// Save or load the state from PmovFile:\r
34int PmovState();\r
35int PmovUpdate();\r
36\r
37// Cart.cpp\r
38int PicoCartLoad(FILE *f,unsigned char **prom,unsigned int *psize);\r
39int PicoCartInsert(unsigned char *rom,unsigned int romsize);\r
40\r
41// Draw.cpp\r
42extern int (*PicoScan)(unsigned int num,unsigned short *data);\r
43extern int PicoMask; // Mask of which layers to draw\r
44\r
45// Sek.cpp\r
46extern char PicoStatus[];\r
47\r
48// Sound.cpp\r
49extern int PsndRate,PsndLen;\r
50extern short *PsndOut;\r
51extern unsigned char PicoSreg[];\r
52\r
53// Utils.cpp\r
54extern int PicuAnd;\r
55int PicuQuick(unsigned short *dest,unsigned short *src);\r
56int PicuShrink(unsigned short *dest,int destLen,unsigned short *src,int srcLen);\r
57int PicuMerge(unsigned short *dest,int destLen,unsigned short *src,int srcLen);\r
58\r
59#ifdef __cplusplus\r
60} // End of extern "C"\r
61#endif\r