We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS

S-DSP/Echo Counter: Difference between revisions

From SnesLab
Jump to: navigation, search
(→‎References: added ares example)
(hid archive URL)
Line 5: Line 5:


=== References ===
=== References ===
* caution #3 (echo operations) in the official Super Nintendo development manual: https://archive.org/details/SNESDevManual/book1/page/n189
* caution #3 (echo operations) in the official Super Nintendo development manual: [https://archive.org/details/SNESDevManual/book1/page/n189 page 3-9-2 of Book I]


[[Category:Audio]]
[[Category:Audio]]

Revision as of 15:08, 8 July 2023

The Echo Counter is a 15-bit unsigned integer. Its value is added to ESA x 100h, yielding the effective address calculation for echo writes. The counter's maximum value is determined by EDL. When the echo counter reaches ESA x 80h, it is reset to zero, but it is the value of ESA at the time of the previous echo counter reset that determines the reset threshold, not the current ESA value. This is to prevent the echo counter from incrementing all the way up to its max if a small ESA is set.

External Links

  • The echo counter is implemented by echo._offset in ares, and it is incremented/reset in DSP::echo29()

References

  • caution #3 (echo operations) in the official Super Nintendo development manual: page 3-9-2 of Book I