prepare for 5E01

This commit is contained in:
tildearrow 2024-03-18 14:22:05 -05:00
parent cb2aeb649f
commit 3423ac8774
8 changed files with 46 additions and 5 deletions

View file

@ -817,6 +817,10 @@ void DivPlatformNES::setNSFPlay(bool use) {
useNP=use;
}
void DivPlatformNES::set5E01(bool use) {
isE=use;
}
unsigned char DivPlatformNES::readDMC(unsigned short addr) {
return dpcmMem[(addr&0x3fff)|((dpcmBank&15)<<14)];
}

View file

@ -62,6 +62,7 @@ class DivPlatformNES: public DivDispatch {
bool useNP;
bool goingToLoop;
bool countMode;
bool isE;
struct NESAPU* nes;
xgm::NES_APU* nes1_NP;
xgm::NES_DMC* nes2_NP;
@ -93,6 +94,7 @@ class DivPlatformNES: public DivDispatch {
float getPostAmp();
unsigned char readDMC(unsigned short addr);
void setNSFPlay(bool use);
void set5E01(bool use);
void setFlags(const DivConfig& flags);
void notifyInsDeletion(void* ins);
void poke(unsigned int addr, unsigned short val);