| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Nes.APU.Tick
Contents
Synopsis
- tick :: IsAPUCycle -> Int -> APU r ()
- tickOnce :: IsAPUCycle -> APU r ()
- type IsAPUCycle = Bool
- tickFrameCounter :: APU r ()
- runHalfFrameEvent :: APU r ()
- runQuarterFrameEvent :: APU r ()
- setFrameInterruptFlag :: Bool -> APU r ()
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
tickOnce :: IsAPUCycle -> APU r () Source #
type IsAPUCycle = Bool Source #
Internal ticking
tickFrameCounter :: APU r () Source #
Tells the frame counter to tick channels
runHalfFrameEvent :: APU r () Source #
runQuarterFrameEvent :: APU r () Source #
setFrameInterruptFlag :: Bool -> APU r () Source #
Set the Frame Counter's Frame flag