C# Class NesHd.Core.NesEngine

The main class of nes machine we emulate
Mostrar archivo Open project: afonsof/nes-hd Class Usage Examples

Public Methods

Method Description
LoadRom ( string romPath ) : bool

Load a rom into the memory

NesEngine ( TvFormat tvFormat, PaletteFormat plFormat ) : System
Pause ( ) : void
Resume ( ) : void
Run ( ) : void

Run the Nes

SaveSram ( string filePath ) : void
SetupInput ( InputManager manager, Joypad joy1, Joypad joy2 ) : void
SetupOutput ( IGraphicDevice videoDevice, IAudioDevice audioDevice ) : void
SetupTv ( TvFormat tvFormat, PaletteFormat palleteFormat ) : void
ShutDown ( ) : void
SoftReset ( ) : void
TogglePause ( ) : void

Toggle pause the nes

Private Methods

Method Description
CpuPauseToggle ( object sender, EventArgs e ) : void

Method Details

LoadRom() public method

Load a rom into the memory
public LoadRom ( string romPath ) : bool
romPath string The INES rom path
return bool

NesEngine() public method

public NesEngine ( TvFormat tvFormat, PaletteFormat plFormat ) : System
tvFormat TvFormat
plFormat NesHd.Core.PPU.PaletteFormat
return System

Pause() public method

public Pause ( ) : void
return void

Resume() public method

public Resume ( ) : void
return void

Run() public method

Run the Nes
public Run ( ) : void
return void

SaveSram() public method

public SaveSram ( string filePath ) : void
filePath string
return void

SetupInput() public method

public SetupInput ( InputManager manager, Joypad joy1, Joypad joy2 ) : void
manager NesHd.Core.Input.InputManager
joy1 NesHd.Core.Input.Joypad
joy2 NesHd.Core.Input.Joypad
return void

SetupOutput() public method

public SetupOutput ( IGraphicDevice videoDevice, IAudioDevice audioDevice ) : void
videoDevice IGraphicDevice
audioDevice IAudioDevice
return void

SetupTv() public method

public SetupTv ( TvFormat tvFormat, PaletteFormat palleteFormat ) : void
tvFormat TvFormat
palleteFormat NesHd.Core.PPU.PaletteFormat
return void

ShutDown() public method

public ShutDown ( ) : void
return void

SoftReset() public method

public SoftReset ( ) : void
return void

TogglePause() public method

Toggle pause the nes
public TogglePause ( ) : void
return void