2 // -------------------- Pico Library --------------------
\r
4 // Pico Megadrive Emulator Library - Header File
\r
6 // Copyright (c) 2011 FinalDave (emudave (at) gmail.com)
\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
11 // SVN repository can be found at http://code.google.com/p/cyclone68000/
\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
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
39 int PicoCartLoad(FILE *f,unsigned char **prom,unsigned int *psize);
\r
40 int PicoCartInsert(unsigned char *rom,unsigned int romsize);
\r
43 extern int (*PicoScan)(unsigned int num,unsigned short *data);
\r
44 extern int PicoMask; // Mask of which layers to draw
\r
47 extern char PicoStatus[];
\r
50 extern int PsndRate,PsndLen;
\r
51 extern short *PsndOut;
\r
52 extern unsigned char PicoSreg[];
\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
61 } // End of extern "C"
\r