C# 클래스 VM.VirtualMachine

상속: IDisposable
파일 보기 프로젝트 열기: Rohansi/VM 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Flags Flag
IP short
Memory Memory
Registers short[]
SP short

공개 메소드들

메소드 설명
AttachDevice ( Device device ) : void
Dispose ( ) : void
RegisterPortInHandler ( short port, Func handler ) : void
RegisterPortOutHandler ( short port, Action handler ) : void
Reset ( ) : void
Step ( bool overrideTrap = false ) : void
VirtualMachine ( Memory memory ) : System

비공개 메소드들

메소드 설명
Pop ( ) : short
Push ( short value ) : void
SetZero ( short value ) : void

메소드 상세

AttachDevice() 공개 메소드

public AttachDevice ( Device device ) : void
device Device
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

RegisterPortInHandler() 공개 메소드

public RegisterPortInHandler ( short port, Func handler ) : void
port short
handler Func
리턴 void

RegisterPortOutHandler() 공개 메소드

public RegisterPortOutHandler ( short port, Action handler ) : void
port short
handler Action
리턴 void

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

Step() 공개 메소드

public Step ( bool overrideTrap = false ) : void
overrideTrap bool
리턴 void

VirtualMachine() 공개 메소드

public VirtualMachine ( Memory memory ) : System
memory Memory
리턴 System

프로퍼티 상세

Flags 공개적으로 프로퍼티

public Flag Flags
리턴 Flag

IP 공개적으로 프로퍼티

public short IP
리턴 short

Memory 공개적으로 프로퍼티

public Memory Memory
리턴 Memory

Registers 공개적으로 프로퍼티

public short[] Registers
리턴 short[]

SP 공개적으로 프로퍼티

public short SP
리턴 short