emulator.dcpu.instruction

Members

Aliases

LiteralDecoder
alias LiteralDecoder = string delegate(ushort)
Undocumented in source.
MemoryAccessor
alias MemoryAccessor = ushort delegate(ushort)
Undocumented in source.

Functions

decodeOperand
string decodeOperand(ushort operand, ushort nextWord, LiteralDecoder literalDecoder)
Undocumented in source. Be warned that the author may not have intended to support it.
fetchAt
Instruction fetchAt(Cpu dcpu, ushort address)
Undocumented in source. Be warned that the author may not have intended to support it.
fetchNext
Instruction fetchNext(Cpu dcpu)
Undocumented in source. Be warned that the author may not have intended to support it.
getOperandA
OperandAccess getOperandA(Cpu dcpu, ushort operandBits, ushort pc, ushort sp)
Undocumented in source. Be warned that the author may not have intended to support it.
getOperandB
OperandAccess getOperandB(Cpu dcpu, ushort operandBits, ushort pc, ushort sp)
Undocumented in source. Be warned that the author may not have intended to support it.
getOperandValue
OperandAccess getOperandValue(Cpu dcpu, ushort operandBits, ushort pc, ushort sp)

Extracts operand value from a dcpu

instructionInfo
InstructionInfo instructionInfo(Instruction instr)
Undocumented in source. Be warned that the author may not have intended to support it.
isConditionalInstruction
bool isConditionalInstruction(Instruction instr)
Undocumented in source. Be warned that the author may not have intended to support it.
isValidInstruction
bool isValidInstruction(Instruction instr)
Undocumented in source. Be warned that the author may not have intended to support it.
litAccess
OperandAccess litAccess(ushort literal)
Undocumented in source. Be warned that the author may not have intended to support it.
memAccess
OperandAccess memAccess(Cpu dcpu, ushort memLocation)
Undocumented in source. Be warned that the author may not have intended to support it.
regAccess
OperandAccess regAccess(Cpu dcpu, ushort regLocation)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

canOperandModifyRegister
bool[64] canOperandModifyRegister;
Undocumented in source.
isOperandImmediate
bool[64] isOperandImmediate;
Undocumented in source.
isOperandRegister
bool[64] isOperandRegister;
Undocumented in source.

Structs

Instruction
struct Instruction
Undocumented in source.
InstructionInfo
struct InstructionInfo
Undocumented in source.
OperandAccess
struct OperandAccess
Undocumented in source.

Variables

plainLitDecoder
string delegate(ushort) plainLitDecoder;
Undocumented in source.

Meta

Authors

Andrey Penechko.