Package ghidra.pcode.emulate
Class EmulateDisassemblerContext
java.lang.Object
ghidra.pcode.emulate.EmulateDisassemblerContext
- All Implemented Interfaces:
DisassemblerContext,ProcessorContext,ProcessorContextView
@Deprecated(since="12.1",
forRemoval=true)
public class EmulateDisassemblerContext
extends Object
implements DisassemblerContext
Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Summary
ConstructorsConstructorDescriptionEmulateDisassemblerContext(Language language, RegisterValue initialContextValue) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidclearRegister(Register register) Deprecated, for removal: This API element is subject to removal in a future version.Clears the register within this context.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getRegister(String name) Deprecated, for removal: This API element is subject to removal in a future version.Get a Register given the name of a registerDeprecated, for removal: This API element is subject to removal in a future version.Returns all the Registers for the processor as an unmodifiable listgetRegisterValue(Register register) Deprecated, for removal: This API element is subject to removal in a future version.Get the RegisterValue for the given register.Deprecated, for removal: This API element is subject to removal in a future version.Get the contents of a processor register as a BigInteger objectbooleanDeprecated, for removal: This API element is subject to removal in a future version.Returns true if a value is defined for the given register.voidsetCurrentAddress(Address addr) Deprecated, for removal: This API element is subject to removal in a future version.voidsetFutureRegisterValue(Address fromAddr, Address toAddr, RegisterValue value) Deprecated, for removal: This API element is subject to removal in a future version.Combinesvaluewith any previously saved future register value atfromAddr/toAddror any value stored in the program if there is no previously saved future value.voidsetFutureRegisterValue(Address address, RegisterValue value) Deprecated, for removal: This API element is subject to removal in a future version.Combinesvaluewith any previously saved future register value ataddressor any value stored in the program if there is no previously saved future value.voidsetRegisterValue(RegisterValue value) Deprecated, for removal: This API element is subject to removal in a future version.Sets the specified register value within this context.voidsetValue(Register register, BigInteger value) Deprecated, for removal: This API element is subject to removal in a future version.Sets the value for a Register.
-
Constructor Details
-
EmulateDisassemblerContext
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getBaseContextRegister
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getBaseContextRegisterin interfaceProcessorContextView- Returns:
- the base processor context register or null if one has not been defined
-
getCurrentContextRegisterValue
Deprecated, for removal: This API element is subject to removal in a future version. -
setCurrentAddress
Deprecated, for removal: This API element is subject to removal in a future version. -
clearRegister
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ProcessorContextClears the register within this context.- Specified by:
clearRegisterin interfaceProcessorContext- Parameters:
register- register to be cleared.
-
getRegister
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ProcessorContextViewGet a Register given the name of a register- Specified by:
getRegisterin interfaceProcessorContextView- Parameters:
name- the name of the register.- Returns:
- The register with the given name.
-
getRegisterValue
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ProcessorContextViewGet the RegisterValue for the given register.- Specified by:
getRegisterValuein interfaceProcessorContextView- Parameters:
register- register to get the value for- Returns:
- RegisterValue object containing the value of the register if a value exists, otherwise null.
-
getRegisters
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ProcessorContextViewReturns all the Registers for the processor as an unmodifiable list- Specified by:
getRegistersin interfaceProcessorContextView- Returns:
- all the Registers for the processor
-
getValue
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ProcessorContextViewGet the contents of a processor register as a BigInteger object- Specified by:
getValuein interfaceProcessorContextView- Parameters:
register- register to get the value for- Returns:
- a BigInteger object containing the value of the register if a value exists, otherwise null.
-
hasValue
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ProcessorContextViewReturns true if a value is defined for the given register.- Specified by:
hasValuein interfaceProcessorContextView- Parameters:
register- the register to check for a value.- Returns:
- true if the given register has a value.
-
setRegisterValue
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ProcessorContextSets the specified register value within this context.- Specified by:
setRegisterValuein interfaceProcessorContext- Parameters:
value- register value
-
setValue
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ProcessorContextSets the value for a Register.- Specified by:
setValuein interfaceProcessorContext- Parameters:
register- the register to have its value setvalue- the value for the register (null is not permitted).
-
setFutureRegisterValue
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:DisassemblerContextCombinesvaluewith any previously saved future register value ataddressor any value stored in the program if there is no previously saved future value. Use this method when multiple flows to the same address don't matter or the flowing from address is unknown.
Whenvaluehas conflicting bits with the previously saved value,valuewill take precedence.
If the register value is the value for the processor context register and a previously saved value does not exist, the user saved values in the stored context of the program will be used as existing value.- Specified by:
setFutureRegisterValuein interfaceDisassemblerContext- Parameters:
address- the address to store the register valuevalue- the register value to store at the address
-
setFutureRegisterValue
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:DisassemblerContextCombinesvaluewith any previously saved future register value atfromAddr/toAddror any value stored in the program if there is no previously saved future value.
Whenvaluehas conflicting bits with the previously saved value,valuewill take precedence.
If the register value is the value for the processor context register and a previously saved value does not exist, the user saved values in the stored context of the program will be used as existing value.- Specified by:
setFutureRegisterValuein interfaceDisassemblerContext- Parameters:
fromAddr- the address this value if flowing fromtoAddr- the address to store the register valuevalue- the register value to store at the address
-