all repos — mgba @ 2155a3017296fbe9de76a6db4ca69515ef113506

mGBA Game Boy Advance Emulator

src/gb/mbc.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_MBC_H
 7#define GB_MBC_H
 8
 9#include "util/common.h"
10
11#include "core/log.h"
12
13mLOG_DECLARE_CATEGORY(GB_MBC);
14
15struct GB;
16struct GBMemory;
17void GBMBCInit(struct GB* gb);
18void GBMBCSwitchBank(struct GBMemory* memory, int bank);
19void GBMBCSwitchSramBank(struct GB* gb, int bank);
20
21uint8_t GBMBC7Read(struct GBMemory*, uint16_t address);
22void GBMBC7Write(struct GBMemory*, uint16_t address, uint8_t value);
23
24#endif