C# Class VM.VirtualMachine

Inheritance: IDisposable
Show file Open project: Rohansi/VM Class Usage Examples

Public Properties

Property Type Description
Flags Flag
IP short
Memory Memory
Registers short[]
SP short

Public Methods

Method Description
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

Private Methods

Method Description
Pop ( ) : short
Push ( short value ) : void
SetZero ( short value ) : void

Method Details

AttachDevice() public method

public AttachDevice ( Device device ) : void
device Device
return void

Dispose() public method

public Dispose ( ) : void
return void

RegisterPortInHandler() public method

public RegisterPortInHandler ( short port, Func handler ) : void
port short
handler Func
return void

RegisterPortOutHandler() public method

public RegisterPortOutHandler ( short port, Action handler ) : void
port short
handler Action
return void

Reset() public method

public Reset ( ) : void
return void

Step() public method

public Step ( bool overrideTrap = false ) : void
overrideTrap bool
return void

VirtualMachine() public method

public VirtualMachine ( Memory memory ) : System
memory Memory
return System

Property Details

Flags public property

public Flag Flags
return Flag

IP public property

public short IP
return short

Memory public property

public Memory Memory
return Memory

Registers public property

public short[] Registers
return short[]

SP public property

public short SP
return short