C# 클래스 DCPU16_ASM.Emulator.CDCPU16Emulator

파일 보기 프로젝트 열기: densitynz/DCPU-16-ASM.NET

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
RunProgram ( ) : void

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

메소드 상세

CDCPU16Emulator() 공개 메소드

Constructor
public CDCPU16Emulator ( ) : System
리턴 System

LoadFontIntoVideoMemory() 공개 메소드

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

LoadProgram() 공개 메소드

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
리턴 bool

Pause() 공개 메소드

Pause DCPU-16 Thread
public Pause ( ) : void
리턴 void

ProcessKeyPress() 공개 메소드

Key press
public ProcessKeyPress ( ushort _keyPress ) : void
_keyPress ushort
리턴 void

Reset() 공개 메소드

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

RunProgram() 보호된 메소드

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

Start() 공개 메소드

Start DCPU-16 Thread
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stop DCPU-16 Thread
public Stop ( ) : void
리턴 void