fixGB/mbc.h

34 lines
612 B
C
Raw Normal View History

/*
* Copyright (C) 2017 FIX94
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#ifndef _mbc_h_
#define _mem_h_
enum {
MBC_TYPE_NONE = 0,
MBC_TYPE_1,
MBC_TYPE_2,
MBC_TYPE_3,
MBC_TYPE_5,
MBC_TYPE_6,
MBC_TYPE_7,
MBC_TYPE_GBS,
};
void mbcInit(uint8_t type);
size_t mbcRTCSize();
void mbcRTCInit();
void mbcRTCLoad(FILE *f);
void mbcRTCStore(FILE *f);
void mbcExtRAMInit();
void mbcExtRAMLoad(FILE *f);
void mbcExtRAMStore(FILE *f);
extern set8FuncT mbcSet8;
extern set8FuncT mbcSetRAM8;
extern get8FuncT mbcGetRAM8;
#endif