Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/libsnes/bsnes/snes/chip/sdd1/sdd1.hpp
2 views
1
class SDD1 {
2
public:
3
void init();
4
void load();
5
void unload();
6
void power();
7
void reset();
8
9
uint8 mmio_read(unsigned addr);
10
void mmio_write(unsigned addr, uint8 data);
11
12
uint8 rom_read(unsigned addr);
13
uint8 mcu_read(unsigned addr);
14
void mcu_write(unsigned addr, uint8 data);
15
16
void serialize(serializer&);
17
SDD1();
18
~SDD1();
19
20
private:
21
uint8 sdd1_enable; //channel bit-mask
22
uint8 xfer_enable; //channel bit-mask
23
bool dma_ready; //used to initialize decompression module
24
unsigned mmc[4]; //memory map controller ROM indices
25
26
struct {
27
unsigned addr; //$43x2-$43x4 -- DMA transfer address
28
uint16 size; //$43x5-$43x6 -- DMA transfer size
29
} dma[8];
30
31
public:
32
#include "decomp.hpp"
33
Decomp decomp;
34
};
35
36
extern SDD1 sdd1;
37
38