MCPcopy Create free account
hub / github.com/TASEmulators/fceux / FDS_ESI

Function FDS_ESI

src/fds.cpp:560–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560static void FDS_ESI(void) {
561 if (FSettings.SndRate) {
562 if (FSettings.soundq >= 1) {
563 fdso.cycles = (int64)1 << 39;
564 } else {
565 fdso.cycles = ((int64)1 << 40) * FDSClock;
566 fdso.cycles /= FSettings.SndRate * 16;
567 }
568 }
569 SetReadHandler(0x4040, 0x407f, FDSWaveRead);
570 SetWriteHandler(0x4040, 0x407f, FDSWaveWrite);
571 SetWriteHandler(0x4080, 0x408A, FDSSWrite);
572 SetReadHandler(0x4090, 0x4092, FDSSRead);
573}
574
575void FDSSoundReset(void) {
576 memset(&fdso, 0, sizeof(fdso));

Callers 1

FDSSoundResetFunction · 0.85

Calls 2

SetReadHandlerFunction · 0.85
SetWriteHandlerFunction · 0.85

Tested by

no test coverage detected