2017-05-14 03:39:16 +00:00
|
|
|
/*
|
|
|
|
* 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,
|
2017-05-15 00:37:48 +00:00
|
|
|
MBC_TYPE_GBS,
|
2017-05-14 03:39:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void mbcInit(uint8_t type);
|
2018-10-31 21:33:10 +00:00
|
|
|
void mbcResetRegs();
|
2017-05-29 03:19:19 +00:00
|
|
|
size_t mbcRTCSize();
|
|
|
|
void mbcRTCInit();
|
|
|
|
void mbcRTCLoad(FILE *f);
|
|
|
|
void mbcRTCStore(FILE *f);
|
2017-05-29 21:09:21 +00:00
|
|
|
void mbcExtRAMInit(uint8_t type);
|
2017-05-29 03:19:19 +00:00
|
|
|
void mbcExtRAMLoad(FILE *f);
|
|
|
|
void mbcExtRAMStore(FILE *f);
|
2017-05-29 21:09:21 +00:00
|
|
|
void mbcExtRAMGBSClear();
|
2017-05-14 03:39:16 +00:00
|
|
|
extern set8FuncT mbcSet8;
|
2017-05-29 03:19:19 +00:00
|
|
|
extern set8FuncT mbcSetRAM8;
|
|
|
|
extern get8FuncT mbcGetRAM8;
|
2017-05-14 03:39:16 +00:00
|
|
|
|
|
|
|
#endif
|