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