all repos — mgba @ 986dc183409235746a3a205acc431be98125279c

mGBA Game Boy Advance Emulator

src/gb/interface.h (view raw)

 1/* Copyright (c) 2013-2016 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#ifndef GB_INTERFACE_H
 7#define GB_INTERFACE_H
 8
 9#include "util/common.h"
10
11enum GBModel {
12	GB_MODEL_AUTODETECT = 0xFF,
13	GB_MODEL_DMG = 0x00,
14	GB_MODEL_SGB = 0x40,
15	GB_MODEL_CGB = 0x80,
16	GB_MODEL_AGB = 0xC0
17};
18
19enum GBMemoryBankControllerType {
20	GB_MBC_AUTODETECT = -1,
21	GB_MBC_NONE = 0,
22	GB_MBC1 = 1,
23	GB_MBC2 = 2,
24	GB_MBC3 = 3,
25	GB_MBC5 = 5,
26	GB_MBC6 = 6,
27	GB_MBC7 = 7,
28	GB_MMM01 = 0x10,
29	GB_HuC1 = 0x11,
30	GB_HuC3 = 0x12,
31	GB_MBC3_RTC = 0x103,
32	GB_MBC5_RUMBLE = 0x105
33};
34
35#endif