Commits

spencercw committed 11568b3

Don't reset the channel 3 flag in NR52 if NR30 is flagged as off.

The NR52 flags are only concerned with the length counter.

  • Participants
  • Parent commits a7f7e08

Comments (0)

Files changed (1)

File gb_emulator/src/gb_sound.cpp

 	if (((countdown3_ <= 0 && !(gb_.mem_.ioPorts[NR52] & 0x04)) ||
 		!(gb_.mem_.ioPorts[NR30] & 0x80)) && !(gb_.mem_.ioPorts[NR34] & 0x80))
 	{
-		gb_.mem_.ioPorts[NR52] &= ~0x04;
 		return 0;
 	}