compare-asm

Compare target and base assembly to surface mismatches and alignment deltas.

4|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/freeqaz/rb3 --skill compare-asm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compare-asm
Source: https://github.com/freeqaz/rb3/tree/main/.claude/skills/compare-asm
Command: npx skills add https://github.com/freeqaz/rb3 --skill compare-asm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Side-by-side comparison of target and base assembly to reveal mismatches, align instructions, and surface deltas that hinder accurate decompilation and porting.

Core Features & Use Cases

  • Side-by-side comparison with aligned instructions
  • Annotations for matches, mismatches, and deltas (register swaps, offsets)
  • Useful for diagnosing the last percent of a function during decompilation or porting

Quick Start

Provide the function symbol name to compare and run the compare tool to generate an annotated ASM diff.

Frequently Asked Questions about compare-asm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compare assembly output to find instruction mismatches during decompilation?

Side-by-side assembly diff tools identify and isolate mismatches between target and base code by aligning instructions and annotating deltas like register swaps and offset changes. You provide a function symbol name to generate the annotated comparison.

What is the best way to diagnose the last percent of a function when porting code?

Diagnosing the last percent of a function during porting requires isolating specific assembly mismatches. Running a diff inspector with the target function symbol surfaces alignment markers and offset deltas that hinder accurate decompilation.

How do I use diff_inspect.py to generate an annotated assembly diff?

To use diff_inspect.py for an annotated assembly diff, execute the script with the --compare-asm flag and provide the target function symbol name as input. This generates a side-by-side comparison highlighting matches, mismatches, and register swaps.

Do I need a specific function symbol to compare target and base assembly?

Yes, a function symbol name is required as input to compare target and base assembly. The tool uses this symbol to scope the diff inspection, accurately isolating mismatches and surfacing alignment markers for that specific function.

What types of deltas are annotated when comparing assembly code?

When comparing assembly code, the diff annotates register swaps, offset deltas, and alignment markers. It highlights matches and mismatches side-by-side to help pinpoint the exact instructions causing decompilation or porting failures.

Can I use an assembly diff tool without setting up dependencies?

Yes, you can use this assembly diff tool without installing additional dependencies, as it operates independently. You only need the base and target code available to run diff_inspect.py and generate the annotated comparison output.