internal PixelProcessingUnitContext(IRandomAccessMemory mainMemory) { _mainMemory = mainMemory; _stateMachine = new PPUStateMachine(this); SpriteTable = new SpriteTable(); _spritesToBeDrawn = new List <Sprite>(); FirstTileMap = new byte[32 * 32]; SecondTileMap = new byte[32 * 32]; TileData = new byte[6144]; _screenBuffer0 = new byte[Common.Constants.Video.ScreenWidth * Common.Constants.Video.ScreenHeight * 3]; _screenBuffer1 = new byte[Common.Constants.Video.ScreenWidth * Common.Constants.Video.ScreenHeight * 3]; LcdControl = 0x91; }
public OamScanState(PixelProcessingUnitContext context, PPUStateMachine stateMachine) : base(context, stateMachine) { }
public PixelWritingState(PixelProcessingUnitContext context, PPUStateMachine stateMachine) : base(context, stateMachine) { }