Repository navigation
feat: atomic CLI analysis primitives & short-abs/trampoline resolution - #6
Merged
Merged
Conversation
… alias, abi, dump) and indirect/short-abs resolution
…eline and DB schema
…lated on existing DBs
… external equates in EmitAllAmiga
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the 8 atomic CLI analysis and annotation primitives, analyzer improvements, and TUI sync for agent & human reverse-engineering workflows:
hunks search <query> [-s <seg>] [-n <limit>] [--dense] [-f text|json]:m:), operands (o:), strings (s:), comments (c:), labels (l:), bytes (b:), hardware/math clusters (cluster:3dmath|mul|div|trig|blitter|copper|paula|bitplane|sprite|cia|dma, with--denseforsmc).hunks data <target> [--len N] [--copper] [--struct <Name> [--count N]] [-f text|json](aliasinspect):dc.b/dc.w/dc.l/pointer/string), decodes Amiga CopperMOVE/WAIT/SKIPlists (--copper), and formats record arrays using struct strides (--struct). Automatically invoked whenhunks cg <target>is given a non-function address/label, and returns a clear error when given an unmapped out-of-segment address.hunks xref <target_or_range> [-f text|json]&.w(EAAbsShort) /movea.l #imm,AnXREF Recording:.w(EAAbsShort, excludingpea), flat.l(EAAbsLong), and 24-bitmovea.l #imm,Anmemory references inxrefs(both low-RAM and in-segment) without altering.woperand emission parity. Supports single-address lookup (includingPTRcells) and external range rollup ($1000..$1FFF,+3DDEE..+3EFFF).hunks analyzesoxrefsare populated when re-analyzing existing databases.hint pointer --follow:hint pointer <addr> [count] [--follow](target resolution, label +XrefDataAddrcreation,OpStr, and code seeding).RunTraceto bounce through low-RAM trampolines (up to 8 steps outside image) and record re-entry targets on the originatingjsr/jmpsite.move.l #Target,$1034.w+jsr $1034.w/movea.l $1034.w,An; jsr (An)) inpropagateBaseRegs.hunks cg --indirect [-f text|json].hunks struct&hunks alias:struct add/list/remove(with--sizeand.b/.w/.l/.pfield type hints) andalias(supporting function-scoped--fn <func>aliases), emitting<field> equ <offset>and<Struct>_SIZEOF equ <size>for 100%vasmm68k_motparity.Label+Offset/Label-OffsetComment Validation (hunks comment):+seg_off (+fn_off)offsets incg --code, formats negative function-relative offsets as signed (Func-13E), validates instruction boundaries & function bounds inhunks comment, and supports--batch/--filebatch files.hunks abi):function_abisinproject.json(automatically re-keyed onrename/undo), computes staticin:/mod:/saved:registers, verifies claimed ABI strings against staticReadRegs/WriteRegs(--verify, including warning on overwritten input claims in memory-arg functions), and surfacesABIincg, TUI, and emitted.asmheaders.hunks dump [-f text|json] [--section <sec>]):entry_points,memory_regions,renames(withabi), non-autocomments,structs,register_aliases, andcarves.internal/tui/):; ABI:headers,[ABI: ...]call-site hints, and live struct field alias substitution (ApplyStructAliasesToOpStr) in the disassembly listing.A(ModalABI) to edit function ABIs interactively, displays ABIs inf(ModalFunctions), syncsReKeyFunctionABIandUndoRenameonn/Ctrl-z, filters_sizeint(ModalStructs), and filters unlabeled.wXREF badges.equdefinitions for interior labels inside carvedincbincells and external/BSS equates inEmitAllAmiga.MANUAL.md(including the Agent Reverse-Engineering Playbook),ARCHITECTURE.md, andREADME.md.