forked from tsuki/openroller
Initial public source release
Split reusable rendering and format support into vectorail-core and vectorail-gc.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
// GhidraScript: print little-endian dwords as hex, signed integers, and floats.
|
||||
// Usage: DumpData.java 0x006fcbf0 32
|
||||
|
||||
import ghidra.app.script.GhidraScript;
|
||||
import ghidra.program.model.address.Address;
|
||||
|
||||
public class DumpData extends GhidraScript {
|
||||
@Override
|
||||
public void run() throws Exception {
|
||||
String[] args = getScriptArgs();
|
||||
if (args == null || args.length != 2) {
|
||||
printerr("DumpData: needs address and dword count");
|
||||
return;
|
||||
}
|
||||
Address base = toAddr(Long.decode(args[0]));
|
||||
int count = Integer.decode(args[1]);
|
||||
for (int i = 0; i < count; ++i) {
|
||||
Address address = base.add(i * 4L);
|
||||
int value = getInt(address);
|
||||
println(address + " 0x" + String.format("%08x", value) +
|
||||
" int=" + value + " float=" + Float.intBitsToFloat(value));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user