C# Class TUP.AsmResolver.ASM.x86Assembler

A class that is able to edit 32-bit assembly instructions to a TUP.AsmResolver.Win32Assembly. UNDER CONSTRUCTION
显示文件 Open project: Rex-Hays/GNIDA Class Usage Examples

Public Methods

Method Description
CalculateSpaceNeeded ( x86Instruction targetInstruction, int newSize ) : int

Calculates and returns the size in bytes needed when replacing an instruction

CalculateSpaceNeeded ( x86Instruction targetInstruction, x86Instruction newInstruction ) : int

Calculates and returns the size in bytes needed when replacing an instruction.

Replace ( x86Instruction targetInstruction, x86Instruction newInstruction ) : void

Replaces an instruction with a new instruction.

Replace ( x86Instruction targetInstruction, x86Instruction newInstruction, bool overwriteWhenLarger ) : void

Replaces an instruction with a new instruction.

Private Methods

Method Description
x86Assembler ( Win32Assembly assembly ) : System

Method Details

CalculateSpaceNeeded() public method

Calculates and returns the size in bytes needed when replacing an instruction
public CalculateSpaceNeeded ( x86Instruction targetInstruction, int newSize ) : int
targetInstruction x86Instruction The instruction to be replaced.
newSize int The new instruction's size.
return int

CalculateSpaceNeeded() public method

Calculates and returns the size in bytes needed when replacing an instruction.
public CalculateSpaceNeeded ( x86Instruction targetInstruction, x86Instruction newInstruction ) : int
targetInstruction x86Instruction The instruction to be replaced.
newInstruction x86Instruction The new instruction.
return int

Replace() public method

Replaces an instruction with a new instruction.
public Replace ( x86Instruction targetInstruction, x86Instruction newInstruction ) : void
targetInstruction x86Instruction The instruction to replace.
newInstruction x86Instruction The new instruction.
return void

Replace() public method

Replaces an instruction with a new instruction.
public Replace ( x86Instruction targetInstruction, x86Instruction newInstruction, bool overwriteWhenLarger ) : void
targetInstruction x86Instruction The instruction to replace.
newInstruction x86Instruction The new instruction.
overwriteWhenLarger bool A boolean indicating whenever the new instruction is larger, it should overwrite the following instructions.
return void