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

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

Public Properties

Property Type Description
NumberLabel int

Public Methods

Method 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

Method Description
ExpectedArgsString ( ) : string

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

Method Details

BuildOpcode() public static method

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
return Opcode

CreateDebugFile() public static method

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
return Opcode

CreateDebugLine() public static method

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
return Opcode

OffsetProc() public method

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

Opcode() public method

public Opcode ( AbcCode abc ) : System.Collections.Generic
abc AbcCode
return System.Collections.Generic

ToString() public method

public ToString ( ) : string
return string

VerifyArgTypes() public static method

public static VerifyArgTypes ( Mnemonics mnemonic, object args ) : bool
mnemonic Mnemonics
args object
return 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
return int