mirror of
https://git.k-space.ee/arti/vt1200.git
synced 2026-10-30 12:03:54 +02:00
checkpoint: VT1200 reverse-engineering workspace before board-model work
This commit is contained in:
commit
acb92d3e44
325 files changed
+951894
No files matched your search
@@ -0,0 +1,27 @@
|
||||
// Report basic analysis stats for a TMS34010 program.
|
||||
//@category VT1200
|
||||
|
||||
import ghidra.app.script.GhidraScript;
|
||||
import ghidra.program.model.listing.Instruction;
|
||||
import ghidra.program.model.listing.InstructionIterator;
|
||||
|
||||
public class StatsTMS34010 extends GhidraScript {
|
||||
|
||||
@Override
|
||||
public void run() throws Exception {
|
||||
println("=== " + currentProgram.getName()
|
||||
+ " [" + currentProgram.getLanguageID() + "]");
|
||||
println(" functions : " + currentProgram.getFunctionManager().getFunctionCount());
|
||||
|
||||
long count = 0;
|
||||
InstructionIterator it = currentProgram.getListing().getInstructions(true);
|
||||
while (it.hasNext()) {
|
||||
Instruction ins = it.next();
|
||||
count++;
|
||||
if (count <= 3) {
|
||||
println(" first insn : " + ins.getAddress() + ": " + ins);
|
||||
}
|
||||
}
|
||||
println(" instructions : " + count);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user