Master blaster fix
[fceu.git] / unif.h
CommitLineData
c62d2810 1/* FCE Ultra - NES/Famicom Emulator
2 *
3 * Copyright notice for this file:
4 * Copyright (C) 2002 Ben Parnell
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21#ifndef UNIFPRIV
22int UNIFLoad(char *name, int fp);
23#endif
24
25void TCU01_Init(void);
26void S8259B_Init(void);
27void S8259A_Init(void);
28void S74LS374N_Init(void);
29void SA0161M_Init(void);
30
31void SA72007_Init(void);
32void SA72008_Init(void);
33void SA0036_Init(void);
34void SA0037_Init(void);
35
36void H2288_Init(void);
37
38void HKROM_Init(void);
39
40void ETROM_Init(void);
41void EKROM_Init(void);
42void ELROM_Init(void);
43void EWROM_Init(void);
44
45void SAROM_Init(void);
46void SBROM_Init(void);
47void SCROM_Init(void);
48void SEROM_Init(void);
49void SGROM_Init(void);
50void SKROM_Init(void);
51void SLROM_Init(void);
52void SL1ROM_Init(void);
53void SNROM_Init(void);
54void SOROM_Init(void);
55
56void NROM_Init(void);
57void NROM256_Init(void);
58void NROM128_Init(void);
59void MHROM_Init(void);
60void UNROM_Init(void);
61void MALEE_Init(void);
62void Supervision16_Init(void);
63void Super24_Init(void);
64void Novel_Init(void);
65void CNROM_Init(void);
66void CPROM_Init(void);
67
68void TFROM_Init(void);
69void TGROM_Init(void);
70void TKROM_Init(void);
71void TSROM_Init(void);
72void TLROM_Init(void);
73void TLSROM_Init(void);
74void TKSROM_Init(void);
75void TQROM_Init(void);
76void TQROM_Init(void);
77
78
79void UNIFOpenWRAM(int t, char *ext, int override);
80void UNIFWriteWRAM(uint8 *p, int size);
81void UNIFReadWRAM(uint8 *p, int size);
82void UNIFCloseWRAM(void);
83#define UOW_RD 0
84#define UOW_WR 1
85
86extern void (*BoardClose)(void);
87extern void (*BoardPower)(void);
88extern void (*BoardReset)(void);
89
90#define UNIFMemBlock (GameMemBlock+32768)
91
92extern int UNIFbattery;
93extern char *UNIFchrrama; // Meh. So I can't stop CHR RAM
94 // bank switcherooing with certain boards...