Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/libsnes/bsnes/snes/chip/bsx/flash/flash.hpp
2 views
1
class BSXFlash : public Memory {
2
public:
3
MappedRAM memory;
4
5
void init();
6
void load();
7
void unload();
8
void power();
9
void reset();
10
11
unsigned size() const;
12
uint8 read(unsigned addr);
13
void write(unsigned addr, uint8 data);
14
15
private:
16
struct {
17
unsigned command;
18
uint8 write_old;
19
uint8 write_new;
20
21
bool flash_enable;
22
bool read_enable;
23
bool write_enable;
24
} regs;
25
};
26
27
extern BSXFlash bsxflash;
28
29