gb: fix lfsr reg init value -- 0d07cb7851

This commit is contained in:
goyuken 2013-10-11 21:28:44 +00:00
parent f8c2706fca
commit eda191007d
3 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ namespace gambatte {
Channel4::Lfsr::Lfsr() :
backupCounter(COUNTER_DISABLED),
reg(0xFF),
reg(0x7FFF),
nr3(0),
master(false)
{}

View File

@ -48,7 +48,7 @@ class Channel4 {
void saveState(SaveState &state, const unsigned long cc);
void loadState(const SaveState &state);
void resetCounters(unsigned long oldCc);
void disableMaster() { killCounter(); master = false; reg = 0xFF; }
void disableMaster() { killCounter(); master = false; reg = 0x7FFF; }
void killCounter() { counter = COUNTER_DISABLED; }
void reviveCounter(unsigned long cc);
};