OSCR
Open Source Cartridge Reader
Loading...
Searching...
No Matches
GameBoyMem.h
1#pragma once
2#if !defined(OSCR_CORE_GAMEBOYMEM_H_)
3# define OSCR_CORE_GAMEBOYMEM_H_
4
5# include "config.h"
6
7# if HAS_GBX
8# include "syslibinc.h"
9# include "common/Types.h"
10
15{
16 void menu();
17
18 uint8_t readByte(uint16_t myAddress);
19 void writeByte(uint16_t myAddress, uint8_t myData);
20
21 void printSdBuffer(uint16_t startByte, uint16_t numBytes);
22 void readROM();
23
24 void send(uint8_t myCommand);
25
26# if HAS_FLASH
27 void send(uint8_t myCommand, uint16_t myAddress, uint8_t myData);
28 void sendSequence(uint8_t myData);
29 void switchGame(uint8_t myData);
30 void resetFlash();
31 bool readFlashID();
32 void eraseFlash();
33 bool blankcheckFlash();
34 void writeFlash();
35 void readMapping();
36 bool eraseMapping();
37 void writeMapping();
38# endif /* HAS_FLASH */
39} /* namespace OSCR::Cores::GameBoyMem */
40
41# endif /* HAS_GBX */
42#endif /* OSCR_CORE_GAMEBOYMEM_H_ */
System core for Game Boy Memory Modules.
Definition GameBoyMem.h:15