C# Class TUP.AsmResolver.ASM.x86Assembler

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

Méthodes publiques

Méthode 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

Méthode Description
x86Assembler ( Win32Assembly assembly ) : System

Method Details

CalculateSpaceNeeded() public méthode

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.
Résultat int

CalculateSpaceNeeded() public méthode

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.
Résultat int

Replace() public méthode

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.
Résultat void

Replace() public méthode

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.
Résultat void