C# Class DCPU16_ASM.Emulator.CDCPU16Emulator

显示文件 Open project: densitynz/DCPU-16-ASM.NET

Public Methods

Method Description
CDCPU16Emulator ( ) : System

Constructor

LoadFontIntoVideoMemory ( Bitmap _fontBuffer ) : void

Load font into DCPU-16's Video memory Based on Notch's Specs

LoadProgram ( string _fileName, string &_errorMessage ) : bool

Loads DCPU-16 binary Program from disk into DCPU's ram.

Pause ( ) : void

Pause DCPU-16 Thread

ProcessKeyPress ( ushort _keyPress ) : void

Key press

Reset ( ) : void

Reset the DCPU-16's Registers

Start ( ) : void

Start DCPU-16 Thread

Stop ( ) : void

Stop DCPU-16 Thread

Protected Methods

Method Description
RunProgram ( ) : void

DCPU-16 thread's Main. Executes DCPU-16 Instructions.

Method Details

CDCPU16Emulator() public method

Constructor
public CDCPU16Emulator ( ) : System
return System

LoadFontIntoVideoMemory() public method

Load font into DCPU-16's Video memory Based on Notch's Specs
public LoadFontIntoVideoMemory ( Bitmap _fontBuffer ) : void
_fontBuffer Bitmap
return void

LoadProgram() public method

Loads DCPU-16 binary Program from disk into DCPU's ram.
public LoadProgram ( string _fileName, string &_errorMessage ) : bool
_fileName string name of file to load
_errorMessage string String storing error messages, empty if no errors found
return bool

Pause() public method

Pause DCPU-16 Thread
public Pause ( ) : void
return void

ProcessKeyPress() public method

Key press
public ProcessKeyPress ( ushort _keyPress ) : void
_keyPress ushort
return void

Reset() public method

Reset the DCPU-16's Registers
public Reset ( ) : void
return void

RunProgram() protected method

DCPU-16 thread's Main. Executes DCPU-16 Instructions.
protected RunProgram ( ) : void
return void

Start() public method

Start DCPU-16 Thread
public Start ( ) : void
return void

Stop() public method

Stop DCPU-16 Thread
public Stop ( ) : void
return void