funes-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Nes.APU.Tick

Synopsis

Ticking

The APU being a part of the CPU, they both tick at the same time. However, some ticks are updated every other CPU cycles. Here the tick function should be called every CPU tick, and pass as parameter whether the tick is on an even CPU cycle or not. Same goes for tickMany.

tick :: IsAPUCycle -> Int -> APU r () Source #

Calls tick n amount of time

the first parameter says whether the first tick is an APU cycle or not

Internal ticking

tickFrameCounter :: APU r () Source #

Tells the frame counter to tick channels

Source: https://www.nesdev.org/wiki/APU_Frame_Counter

setFrameInterruptFlag :: Bool -> APU r () Source #

Set the Frame Counter's Frame flag