Skip to content

Ghidra is a software reverse engineering (SRE) framework

Merge remote-tracking branch 'origin/GP-1426_Dan_asmWoW64--SQUASHED'

Ryan Kurtz4f59e90b3959
diff --cc Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/assembler/AssemblyDualTextField.java
index 64a4147d2f,bd001451a2..1b039ebfc9
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/assembler/AssemblyDualTextField.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/assembler/AssemblyDualTextField.java
@@@ -687,24 -602,20 +687,24 @@@ public class AssemblyDualTextField
/**
* Provides an ordering for assembled instructions appearing in the list
*
+ * <p>
* The items with the highest preference are positioned at the top of the list
- * @param rc a resolved instruction
- * @param existing the instruction, if any, currently under the user's cursor
- * @return a preference
*
+ * <p>
* This is an extension point.
*
- * Currently, a proposed instruction having the same constructor tree as the existing one is
- * the most preferred. Second, are instructions having a similar tree as the existing one --
- * "similar" is not yet well defined, but at the moment, it means their constructor tree
- * strings have a long common prefix. Third, instructions having the same encoded length as
- * the existing one are preferred. Last, the shortest instructions are preferred.
+ * <p>
+ * Currently, a proposed instruction having the same constructor tree as the existing one is the
+ * most preferred. Second, are instructions having a similar tree as the existing one --
+ * "similar" is not yet well defined, but at the moment, it means their constructor tree strings
+ * have a long common prefix. Third, instructions having the same encoded length as the existing
+ * one are preferred. Last, the shortest instructions are preferred.
+ *
+ * @param rc a resolved instruction
+ * @param existing the instruction, if any, currently under the user's cursor
+ * @return a preference
*/
- protected int computePreference(AssemblyResolvedConstructor rc, Instruction existing) {
+ protected int computePreference(AssemblyResolvedPatterns rc, Instruction existing) {
if (existing == null) {
return 0;
}