Méthode | Description | |
---|---|---|
CDCPU16 ( ) : System |
Constructor
|
|
CDCPU16 ( List |
Constructor
|
|
ClearMemoryBuffers ( ) : void |
Clears Video/Keyboard (and more to come) buffers
|
|
DebugShowRegisters ( ) : void |
Write contents of Registers to Console.
|
|
ExecuteInstruction ( ) : void |
Execute a DCPU-16 Instruction
|
|
InitCPU ( ) : void |
Initialize DCPU-16 CPU. Allocates required memory space for RAM and General purpose Registers
|
|
ResetCPURegisters ( ) : void |
Resets DCPU-16's Registers. NOTE: we do Video/Keyboard buffer clearing as well. Will shift soon :)
|
|
SetProgram ( List |
Sets DPU-16 up with a program to execute
|
Méthode | Description | |
---|---|---|
ReadNextWord ( ) : ushort |
Read next Word from DCPU-16's ram @ the program counter's Location.
|
|
ReadParamValue ( ushort _opParam ) : readParamValue |
Read OpCode Parameter value. BBBBBB AAAAAA 0000 Will decode either A or B (based on what is given in _opParam) and populate data into a readParamValue struct. The PC register is automatically incremented based on what needs to be read.
|
|
SetResultValue ( readParamValue _resultValue ) : void |
Stores Read param values back into RAM or Registers. This is normally called after resolving a OpCode instruction in ExecuteInstruction().
|
public CDCPU16 ( List |
||
_machineCode | List |
list array containing DCPU-16 Program |
Résultat | System |
public SetProgram ( List |
||
_machineCode | List |
list array containing DCPU-16 Program |
Résultat | void |