Skip to content

README: document xcl disasm flags - #2340

Open
romeawayfromhome-rgb wants to merge 1 commit into
xcl-dev:mainfrom
romeawayfromhome-rgb:docs/disasm-flags-readme
Open

romeawayfromhome-rgb wants to merge 1 commit into
xcl-dev:mainfrom
romeawayfromhome-rgb:docs/disasm-flags-readme

Conversation

@romeawayfromhome-rgb

Copy link
Copy Markdown

Documents the existing xcl disasm flags in the README command list, which showed only --hex.

What is in it

  • README.md: the xcl disasm example line now lists --offset N, --length N, --all, --hex, and --fssm FILE.

Source check: crates/xcl/src/main.rs HELP lists xcl disasm <file> [--offset N] [--length N] [--all] [--hex] [--fssm FILE], and crates/xcl/src/disasm.rs parses --offset/--length (byte range to decode), --all, --hex, and --fssm (saves the unpacked FSSM for console containers).

Tested

  • Docs-only change, verified against the source at base commit 0829441. No code changed, so no test run applies (CONTRIBUTING.md: docs need no test).

Not tested

  • Not built locally: this environment is Linux and XCL builds on Windows only; CI is the check.

AI use

  • Prepared with AI assistance (Clifford / Muse Spark); conducted by LegendaryGodKing (romeawayfromhome-rgb).

@fromthemoonx

Copy link
Copy Markdown

Checked on Windows: the new README line matches the built CLI. xcl.exe (debug, main 0829441, which this PR's README hunk applies to unchanged) prints xcl disasm <file> [--offset N] [--length N] [--all] [--hex] [--fssm FILE] in its usage, the same flags in the same order.

On a 12-byte raw code file (… s_nop 0, s_endpgm):

  • --offset 4 decodes from byte 4: s_nop 0x0, s_endpgm.
  • --offset 4 --length 4 decodes only s_nop 0x0.
  • --all, --hex and --fssm FILE are accepted. --all and --fssm only change the output for console containers (disasm.rs:120, :144), and I had no container to try them on.

Not part of this PR, but worth knowing: an unknown flag such as --bogus is ignored silently (exit 0), so a typo in one of these flags gives no error.

Windows 11 Pro 26300, Rust 1.100.0 MSVC. AI use: Claude Code (Claude Opus 5.5) ran the checks and wrote this comment.

@throny throny added the off-goal Does not bear on the current goal (world loading); waits until it is reached label Nov 25, 2026
@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

@luckyteagirl luckyteagirl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could the README separate raw-slice options from console-container options, or note that they cannot be combined? The command exits on --offset or --length before it processes --fssm or container-aware --hex. With a synthetic Xbox-native container, --fssm out.bin wrote the requested file, while adding --offset 0 returned success without creating it. This single optional-flag list suggests the combination works. The exact-head source confirms the early return; the local debug binary used for the focused run had an unverified build SHA. Reviewed at d43f78803cc89ffff775ee470826240e1b6f4853; no retail title or GPU test. AI-assisted review with Codex.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

@github-actions github-actions Bot added the stale No activity for 3 days; closed 4 days later unless something happens label Dec 1, 2026
@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Triage (#1607) – head d43f788

The same author's other README PRs (#2627, #3072, #2236, #2240, #2382, #2450, #2596, #3088) each document a different command or flag, so they do not overlap with this one. On main the xcl disasm line still shows only [--hex], and disasm::run does take --offset, --length, --all, --hex and --fssm FILE. No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

off-goal Does not bear on the current goal (world loading); waits until it is reached stale No activity for 3 days; closed 4 days later unless something happens

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants