- Planificant els mapejadors de memòria

- Afegits supermarioland, gargoylesquest i pokemonred per a provar diferents mapejadors
This commit is contained in:
2025-01-14 17:02:07 +01:00
parent f766c40cc7
commit add6562575
7 changed files with 53 additions and 29 deletions
+9 -3
View File
@@ -3,10 +3,16 @@
namespace mem
{
#define MAPPER_NONE 0
#define MBC_NONE 0
#define MBC1 1
#define MBC2 2
#define MBC3 3
#define MBC5 5
#define MBC6 6
#define MBC7 7
void init(const uint8_t* rom, const int size);
void reset();
uint8_t readMem(uint16_t address);
void writeMem(uint16_t address, uint8_t value);
extern uint8_t(*readMem)(uint16_t);
extern void (*writeMem)(uint16_t, uint8_t);
}