Package ghidra.app.cmd.refs
Class AddShiftedMemRefCmd
java.lang.Object
ghidra.app.cmd.refs.AddShiftedMemRefCmd
Command class to add a shifted memory reference to the program.
-
Constructor Summary
ConstructorDescriptionAddShiftedMemRefCmd
(Address fromAddr, Address toAddr, RefType refType, SourceType source, int opIndex, int shift) Command constructor for adding a shifted memory reference -
Method Summary
-
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<Program>
- Returns:
- reason for failure, or null if the status of the command was successful
-
getName
Description copied from interface:Command
Returns the name of this command.
-