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