Package ghidra.app.cmd.refs
Class AddShiftedMemRefCmd
java.lang.Object
ghidra.app.cmd.refs.AddShiftedMemRefCmd
- All Implemented Interfaces:
Command
Command class to add a shifted memory reference to the program.
-
Constructor Summary
ConstructorsConstructorDescriptionAddShiftedMemRefCmd
(Address fromAddr, Address toAddr, RefType refType, SourceType source, int opIndex, int shift) Command constructor for adding a shifted memory reference -
Method Summary
Modifier and TypeMethodDescriptionboolean
applyTo
(DomainObject obj) Applies the command to the given domain object.getName()
Returns the name of this command.Returns the status message indicating the status of the command.
-
Constructor Details
-
AddShiftedMemRefCmd
public AddShiftedMemRefCmd(Address fromAddr, Address toAddr, RefType refType, SourceType source, int opIndex, int shift) Command constructor for adding a shifted memory reference- Parameters:
fromAddr
- address of the codeunit where the reference occurstoAddr
- computed as the value of the operand at opIndex shifted by the number of bits specified by shiftValuerefType
- reference type - how the location is being referenced.source
- the source of the referenceopIndex
- the operand index in the code unit where the reference occursshift
- the number of bits to shift the value by
-
-
Method Details
-
applyTo
Description copied from interface:Command
Applies the command to the given domain object. -
getStatusMsg
Description copied from interface:Command
Returns the status message indicating the status of the command.- Specified by:
getStatusMsg
in interfaceCommand
- Returns:
- reason for failure, or null if the status of the command was successful
- See Also:
-
getName
Description copied from interface:Command
Returns the name of this command.
-