1 /***************************************************************************
2 * Copyright (C) 2007 Ryan Schultz, PCSX-df Team, PCSX team *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, write to the *
16 * Free Software Foundation, Inc., *
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307 USA. *
18 ***************************************************************************/
28 #include "psxcommon.h"
32 #include "psemu_plugin_defs.h"
34 #define MCD_SIZE (1024 * 8 * 16)
36 extern char Mcd1Data[MCD_SIZE], Mcd2Data[MCD_SIZE];
37 extern char McdDisable[2];
39 void sioWrite8(unsigned char value);
40 void sioWriteStat16(unsigned short value);
41 void sioWriteMode16(unsigned short value);
42 void sioWriteCtrl16(unsigned short value);
43 void sioWriteBaud16(unsigned short value);
45 unsigned char sioRead8();
46 unsigned short sioReadStat16();
47 unsigned short sioReadMode16();
48 unsigned short sioReadCtrl16();
49 unsigned short sioReadBaud16();
54 int sioFreeze(void *f, int Mode);
56 void LoadMcd(int mcd, char *str);
57 void LoadMcds(char *mcd1, char *mcd2);
58 void SaveMcd(char *mcd, char *data, uint32_t adr, int size);
59 void CreateMcd(char *mcd);
60 void ConvertMcd(char *mcd, char *data);
63 char Title[48 + 1]; // Title in ASCII
64 char sTitle[48 * 2 + 1]; // Title in Shift-JIS
68 short Icon[16 * 16 * 3];
72 void GetMcdBlockInfo(int mcd, int block, McdBlock *info);