| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Nes.Bus.State
Contents
Synopsis
- data BusState = BusState {
- _cpuVram :: !MemoryPointer
- _cartridge :: !Rom
- _controller :: !ControllerState
- _cycles :: !Integer
- _unsleptCycles :: !Int
- _cycleCallback :: Double -> Int -> IO (Double, Int)
- _lastSleepTime :: !Double
- _ppuState :: !PPUState
- _ppuPointers :: !PPUPointers
- _onNewFrame :: BusState -> IO ()
- _pollControls :: ControllerState -> IO ControllerState
- _dataBus :: !Byte
- _apuState :: !APUState
- _cpuInterrupt :: !InterruptStatus
- newBusState :: Rom -> (BusState -> IO ()) -> (ControllerState -> IO ControllerState) -> (Sample -> IO ()) -> (Double -> Int -> IO (Double, Int)) -> FilterThread -> IO BusState
- cpuVram :: Lens' BusState MemoryPointer
- cartridge :: Lens' BusState Rom
- controller :: Lens' BusState ControllerState
- cycles :: Lens' BusState Integer
- unsleptCycles :: Lens' BusState Int
- cycleCallback :: Lens' BusState (Double -> Int -> IO (Double, Int))
- lastSleepTime :: Lens' BusState Double
- ppuState :: Lens' BusState PPUState
- ppuPointers :: Lens' BusState PPUPointers
- onNewFrame :: Lens' BusState (BusState -> IO ())
- dataBus :: Lens' BusState Byte
- apuState :: Lens' BusState APUState
- pollControls :: Lens' BusState (ControllerState -> IO ControllerState)
- cpuInterrupt :: Lens' BusState InterruptStatus
Documentation
Interface for the CPU that allows it to read/write to RAM
Constructors
| BusState | |
Fields
| |