wiki says(Sorry,I'm not sure it should be says or say or said) Each sweep unit contains the following: divider, reload flag.
The reload flag is set when write $4001 or $4005.
But when clear it?
Thanks for your answer.
How to clear APU sweep unit reload flag
Moderator: Moderators
Re: How to clear APU sweep unit reload flag
It gets reset (cleared) when the Sweep Unit is clocked by the Frame Sequencer.
Re: How to clear APU sweep unit reload flag
It seems no. wiki describes SET only. Please see the pic.Disch wrote:It gets reset (cleared) when the Sweep Unit is clocked by the Frame Sequencer.
Re: How to clear APU sweep unit reload flag
I think there is a missing "The reload flag is then cleared" after the above quoted text, but I am not familiar with the mechanism of the sweep units.nesdevwiki wrote:If the reload flag is set, the divider's counter is set to the period P. If the divider's counter was zero before the reload and the sweep is enabled, the pulse's period is also adjusted (if the target period is in range; see below).
Re: How to clear APU sweep unit reload flag
Thanks to everyone. I decide to read neswiki, 2A03 technical reference and apu_ref simultaneously to seek the result.
- rainwarrior
- Posts: 8062
- Joined: Sun Jan 22, 2012 12:03 pm
- Location: Canada
- Contact:
Re: How to clear APU sweep unit reload flag
Yes, the reload flag is cleared when the sweep unit is clocked. I will add that to the text.
If you want to clear the reload flag, you can manually clock the APU frame sequencer by writing $4017 with bit 7 set.
If you want to clear the reload flag, you can manually clock the APU frame sequencer by writing $4017 with bit 7 set.
Re: How to clear APU sweep unit reload flag
Thank you. Recently, I am implementing APU for my emulator, so I try my best to confirm any info about APU.rainwarrior wrote:Yes, the reload flag is cleared when the sweep unit is clocked. I will add that to the text.
If you want to clear the reload flag, you can manually clock the APU frame sequencer by writing $4017 with bit 7 set.