mirror of https://github.com/bsnes-emu/bsnes.git
41 lines
862 B
C++
41 lines
862 B
C++
struct SDD1 {
|
|
MappedRAM rom;
|
|
MappedRAM ram;
|
|
|
|
void init();
|
|
void load();
|
|
void unload();
|
|
void power();
|
|
void reset();
|
|
|
|
uint8 read(unsigned addr);
|
|
void write(unsigned addr, uint8 data);
|
|
|
|
uint8 mmc_read(unsigned addr);
|
|
|
|
uint8 mcurom_read(unsigned addr);
|
|
void mcurom_write(unsigned addr, uint8 data);
|
|
|
|
uint8 mcuram_read(unsigned addr);
|
|
void mcuram_write(unsigned addr, uint8 data);
|
|
|
|
void serialize(serializer&);
|
|
|
|
private:
|
|
uint8 sdd1_enable; //channel bit-mask
|
|
uint8 xfer_enable; //channel bit-mask
|
|
bool dma_ready; //used to initialize decompression module
|
|
unsigned mmc[4]; //memory map controller ROM indices
|
|
|
|
struct {
|
|
unsigned addr; //$43x2-$43x4 -- DMA transfer address
|
|
uint16 size; //$43x5-$43x6 -- DMA transfer size
|
|
} dma[8];
|
|
|
|
public:
|
|
#include "decomp.hpp"
|
|
Decomp decomp;
|
|
};
|
|
|
|
extern SDD1 sdd1;
|