license info added to Pico directory
[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
15eb0001 11#ifdef __cplusplus\r
12extern "C" {\r
13#endif\r
14\r
15// Pico.cpp\r
16extern int PicoVer;\r
17extern int PicoOpt;\r
18int PicoInit();\r
19void PicoExit();\r
20int PicoReset();\r
21int PicoFrame();\r
22extern int PicoPad[2]; // Joypads, format is SACB RLDU\r
23extern int (*PicoCram)(int cram); // Callback to convert colour ram 0000bbb0 ggg0rrr0\r
24\r
25// Area.cpp\r
26struct PicoArea { void *data; int len; char *name; };\r
27extern int (*PicoAcb)(struct PicoArea *); // Area callback for each block of memory\r
28extern FILE *PmovFile;\r
29extern int PmovAction;\r
30// &1=for reading &2=for writing &4=volatile &8=non-volatile\r
31int PicoAreaScan(int action,int *pmin);\r
32// Save or load the state from PmovFile:\r
33int PmovState();\r
34int PmovUpdate();\r
35\r
36// Cart.cpp\r
37int PicoCartLoad(FILE *f,unsigned char **prom,unsigned int *psize);\r
38int PicoCartInsert(unsigned char *rom,unsigned int romsize);\r
39\r
40// Draw.cpp\r
41extern int (*PicoScan)(unsigned int num,unsigned short *data);\r
42extern int PicoMask; // Mask of which layers to draw\r
43\r
44// Sek.cpp\r
45extern char PicoStatus[];\r
46\r
47// Sound.cpp\r
48extern int PsndRate,PsndLen;\r
49extern short *PsndOut;\r
50extern unsigned char PicoSreg[];\r
51\r
52// Utils.cpp\r
53extern int PicuAnd;\r
54int PicuQuick(unsigned short *dest,unsigned short *src);\r
55int PicuShrink(unsigned short *dest,int destLen,unsigned short *src,int srcLen);\r
56int PicuMerge(unsigned short *dest,int destLen,unsigned short *src,int srcLen);\r
57\r
58#ifdef __cplusplus\r
59} // End of extern "C"\r
60#endif\r