-
Notifications
You must be signed in to change notification settings - Fork 0
/
romh.h
41 lines (36 loc) · 911 Bytes
/
romh.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
#define ROM_NAME 0x134
#define ROM_TYPE 0x147
#define ROM_SIZE 0x148
#define RAM_SIZE 0x149
enum romCartridgeType {
ROM_PLAIN = 0x00,
ROM_MBC1 = 0x01,
ROM_MBC1_RAM = 0x02,
ROM_MB1_RAM_BATT = 0x03,
ROM_MBC2 = 0x05,
ROM_MBC2_BATT = 0x06,
ROM_RAM = 0x08,
ROM_RAM_BATT = 0x09,
ROM_MMM01 = 0x0B,
ROM_MMM01_SRAM = 0x0C,
ROM_MMM01_SRAM_BATT = 0x0D,
ROM_MBC3_TIMER_BATT = 0x0F,
ROM_MBC3_TIMER_RAM_BATT = 0x10,
ROM_MBC3 = 0x11,
ROM_MBC3_RAM = 0x12,
ROM_MBC3_RAM_BATT = 0x13,
ROM_MBC5 = 0x19,
ROM_MBC5_RAM = 0x1A,
ROM_MBC5_RAM_BATT = 0x1B,
ROM_MBC5_RUMBLE = 0x1C,
ROM_MBC5_RUMBLE_SRAM = 0x1D,
ROM_MBC5_RUMBLE_SRAM_BATT = 0x1E,
ROM_POCKET_CAMERA = 0x1F,
ROM_TAMA5 = 0xFD,
ROM_HHUC3 = 0xFE,
ROM_HHUC1 = 0xFF
};
extern const char *romType[256];
unsigned char loadROM(char *file);
void unloadROM(void);