Property | Type | Description | |
---|---|---|---|
SourcePath |
Method | Description | |
---|---|---|
Execute ( ICpu cpu ) : void | ||
GetArgumentDefs ( ) : IEnumerable |
Return the list of member Properties that are part of what gets stored to machine langauge for this opcode.
|
|
InitMachineCodeData ( ) : void |
This is intended to be called once, during the mod's initialization, and never again. It builds the Dictionaries that look up the type of opcode given its string name or code.
|
|
PopulateFromMLFields ( List |
Starting from an empty instance of this opcode that you can assume was created from the default constructor, populate the Opcode's properties from a list of all the [MLFields] saved to the machine language file.
|
|
ToString ( ) : string | ||
TypeFromCode ( ByteCode code ) : |
Given a string value of Code, find the Opcode Type that uses that as its CodeName.
|
|
TypeFromName ( string name ) : |
Given a string value of Name, find the Opcode Type that uses that as its Name.
|
Method | Description | |
---|---|---|
Opcode ( ) : System | ||
PopStructureAssertEncapsulated ( ICpu cpu, bool barewordOkay = false ) : Structure |
A utility function that will do the same as a cpu.PopStructureEncapsulated, but with an additional check to ensure the value atop the stack isn't the arg bottom marker.
|
|
PopValueAssert ( ICpu cpu, bool barewordOkay = false ) : object |
A utility function that will do a cpu.PopValue, but with an additional check to ensure the value atop the stack isn't the arg bottom marker.
|
|
PopValueAssertEncapsulated ( ICpu cpu, bool barewordOkay = false ) : object |
A utility function that will do the same as a cpu.PopValueEncapsulated, but with an additional check to ensure the value atop the stack isn't the arg bottom marker.
|
Method | Description | |
---|---|---|
MLFieldComparator ( |
Delegate function used for Sort() of the MLFields on an Opcode. Should only be called on properties that have [MLField] attributes on them.
|
protected PopStructureAssertEncapsulated ( ICpu cpu, bool barewordOkay = false ) : Structure | ||
cpu | ICpu | |
barewordOkay | bool | |
return | Structure |
protected PopValueAssert ( ICpu cpu, bool barewordOkay = false ) : object | ||
cpu | ICpu | |
barewordOkay | bool | |
return | object |
protected PopValueAssertEncapsulated ( ICpu cpu, bool barewordOkay = false ) : object | ||
cpu | ICpu | |
barewordOkay | bool | |
return | object |
public PopulateFromMLFields ( List | ||
fields | List | A list of all the [MLFields] to populate the opcode with,
/// given *IN ORDER* of their Ordering fields. This is important. If the
/// opcode has 2 properties, one that was given attribute [MLField(10)] and the
/// other that was given attribute [MLField(20)], then the one with ordering=10
/// will be the first one in this list, and the one with ordering=20 will be the
/// second. You can process the list in the guaranteed assumption that the caller
/// ordered the arguments this way. /// NOTE: If the opcode has no MLField's attributes, then this may be passed in /// as null, rather than as a list of 0 items. /// |
return | void |
public static TypeFromCode ( ByteCode code ) : |
||
code | ByteCode | ByteCode to look up |
return |
public static TypeFromName ( string name ) : |
||
name | string | name to look up |
return |