C# Class SWFProcessing.SWFModeller.ABC.Code.Opcode

A line of bytecode, disassembled from the source bytes.
Afficher le fichier Open project: WeeWorld/Swiffotron Class Usage Examples

Méthodes publiques

Свойство Type Description
NumberLabel int

Méthodes publiques

Méthode Description
BuildOpcode ( ABCDataTypeReader reader, AbcCode abc ) : Opcode

Convenience method for creating an opcode from a position in a byte array. Returns an opcode object with references resolved and advances the position to the next place in the byte array.

CreateDebugFile ( string fileName ) : Opcode

Convenience method for debug file opcodes, which can be inserted sneakily at the last moment when serialising the bytecode, and so need to be created in this lightweight way.

CreateDebugLine ( uint line ) : Opcode

Convenience method for debug line opcodes, which can be inserted sneakily at the last moment when serialising the bytecode, and so need to be created in this lightweight way.

OffsetProc ( OffsetProcMethod opm ) : void

Process opcode references into offset values.

Opcode ( AbcCode abc ) : System.Collections.Generic
ToString ( ) : string
VerifyArgTypes ( Mnemonics mnemonic, object args ) : bool

Private Methods

Méthode Description
ExpectedArgsString ( ) : string

Used for error messages to say what argument types an opcode was expecting.

Method Details

BuildOpcode() public static méthode

Convenience method for creating an opcode from a position in a byte array. Returns an opcode object with references resolved and advances the position to the next place in the byte array.
public static BuildOpcode ( ABCDataTypeReader reader, AbcCode abc ) : Opcode
reader ABCDataTypeReader Where to read the next opcode from
abc AbcCode The code within which we're reading
Résultat Opcode

CreateDebugFile() public static méthode

Convenience method for debug file opcodes, which can be inserted sneakily at the last moment when serialising the bytecode, and so need to be created in this lightweight way.
public static CreateDebugFile ( string fileName ) : Opcode
fileName string
Résultat Opcode

CreateDebugLine() public static méthode

Convenience method for debug line opcodes, which can be inserted sneakily at the last moment when serialising the bytecode, and so need to be created in this lightweight way.
public static CreateDebugLine ( uint line ) : Opcode
line uint
Résultat Opcode

OffsetProc() public méthode

Process opcode references into offset values.
public OffsetProc ( OffsetProcMethod opm ) : void
opm OffsetProcMethod A delegate that does the /// processing.
Résultat void

Opcode() public méthode

public Opcode ( AbcCode abc ) : System.Collections.Generic
abc AbcCode
Résultat System.Collections.Generic

ToString() public méthode

public ToString ( ) : string
Résultat string

VerifyArgTypes() public static méthode

public static VerifyArgTypes ( Mnemonics mnemonic, object args ) : bool
mnemonic Mnemonics
args object
Résultat bool

Property Details

NumberLabel public_oe property

Set this so that it shows up in ToString on debug output, so show up jump targets properly.
public int NumberLabel
Résultat int