- tbg_core: board (10x22, ROM layout), pieces, shared piece queue, player (gravity, DAS, lock delay, line clear); placeholder rotation/RNG/timings - SDL3 front end: single board, 60 Hz fixed step, next-3 preview - core tests - RE tooling: Ghidra seed/export scripts, 65816 disassembler, headless Mesen2 wrapper + Lua input/snapshot driver, asm export, NOTES.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
1017 B
Java
25 lines
1017 B
Java
// Print function/instruction counts and the reset-vector listing.
|
|
import ghidra.app.script.GhidraScript;
|
|
import ghidra.program.model.listing.*;
|
|
import ghidra.program.model.address.*;
|
|
|
|
public class Stats extends GhidraScript {
|
|
@Override
|
|
public void run() throws Exception {
|
|
Listing l = currentProgram.getListing();
|
|
println("functions=" + currentProgram.getFunctionManager().getFunctionCount()
|
|
+ " instructions=" + l.getNumInstructions());
|
|
for (MemoryBlockLike b : new MemoryBlockLike[0]) {}
|
|
for (var b : currentProgram.getMemory().getBlocks())
|
|
println("block " + b.getName() + " " + b.getStart() + "-" + b.getEnd());
|
|
Address a = toAddr("808028");
|
|
for (int i = 0; i < 12; i++) {
|
|
Instruction ins = l.getInstructionAt(a);
|
|
if (ins == null) { println(a + " <no instruction>"); break; }
|
|
println(a + " " + ins);
|
|
a = ins.getMaxAddress().next();
|
|
}
|
|
}
|
|
interface MemoryBlockLike {}
|
|
}
|