mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-29 22:35:38 +08:00
Merge remote-tracking branch
'origin/GP-2789_Dan_asmUnsigned64Immediates--SQUASHED' into patch (Closes #4688)
This commit is contained in:
+1
-1
@@ -183,7 +183,7 @@ public class AssemblyNumericTerminal extends AssemblyTerminal {
|
|||||||
return Collections.emptySet();
|
return Collections.emptySet();
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
long val = Long.parseLong(num, radix);
|
long val = Long.parseUnsignedLong(num, radix);
|
||||||
if (neg) {
|
if (neg) {
|
||||||
val = -val;
|
val = -val;
|
||||||
}
|
}
|
||||||
|
|||||||
+11
@@ -186,6 +186,17 @@ public class x64AssemblyTest extends AbstractAssemblyTest {
|
|||||||
assertOneCompatRestExact("MOV RCX,qword ptr [R12]", "49:8b:0c:24");
|
assertOneCompatRestExact("MOV RCX,qword ptr [R12]", "49:8b:0c:24");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testAssemble_MOV_RDX_0xffffffffffffffff() {
|
||||||
|
assertOneCompatRestExact("MOV RDX,0xffffffffffffffff", "48:ba:ff:ff:ff:ff:ff:ff:ff:ff",
|
||||||
|
"MOV RDX,-0x1");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testAssemble_MOV_RDX_n1() {
|
||||||
|
assertOneCompatRestExact("MOV RDX,-0x1", "48:ba:ff:ff:ff:ff:ff:ff:ff:ff");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAssemble_MOV_mRBXm_R14W() {
|
public void testAssemble_MOV_mRBXm_R14W() {
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user