| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Nes.CPU.Interpreter
Documentation
runProgram :: BusState -> CPU (CPUState, Integer) () -> IO (CPUState, Integer) Source #
Runs the program that's on the memory (interfaced by the given Bus).
The second argument is a callback run at each loop.
Returns the state of the CPU with the number of ellapsed ticks
runProgram' :: CPUState -> BusState -> CPU (CPUState, Integer) () -> IO (CPUState, Integer) Source #
Same as runProgram, but uses a given state
interpretWithCallback :: CPU r () -> CPU r () Source #
Interpretation loop of the program