README: document xcl disasm flags #2340

Open
github-bot wants to merge 1 commit from github-bot/gh-2340 into main AGit
Owner

@⁠romeawayfromhome-rgb on GitHub · 2026-11-25 15:42 UTC · original
romeawayfromhome-rgb:docs/disasm-flags-readme → main · +1 −1 · 1 files · 1 commits · open

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 082944135c. 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).
**@⁠romeawayfromhome-rgb** on GitHub · 2026-11-25 15:42 UTC · [original](https://github.com/xcl-dev/xcl/pull/2340) `romeawayfromhome-rgb:docs/disasm-flags-readme` → `main` · +1 −1 · 1 files · 1 commits · open 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 082944135cd2b96288470a595861fa608eee08dc. 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).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:28:09 +00:00
Author
Owner

@⁠fromthemoonx on GitHub · 2026-11-25 16:02 UTC · original

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.

**@⁠fromthemoonx** on GitHub · 2026-11-25 16:02 UTC · [original](https://github.com/xcl-dev/xcl/pull/2340#issuecomment-7167542939) **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.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 18:25 UTC · original

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

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 18:25 UTC · [original](https://github.com/xcl-dev/xcl/pull/2340#issuecomment-7170885524) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
Author
Owner

@⁠luckyteagirl on GitHub · 2026-11-26 05:42 UTC · original · reviewed

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.

**@⁠luckyteagirl** on GitHub · 2026-11-26 05:42 UTC · [original](https://github.com/xcl-dev/xcl/pull/2340#pullrequestreview-6069100354) · **reviewed** 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.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2340/head:github-bot/gh-2340'
git switch 'github-bot/gh-2340'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2340'
git switch 'github-bot/gh-2340'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2340'
git switch 'github-bot/gh-2340'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2340'
git switch 'main'
git merge --squash 'github-bot/gh-2340'
git switch 'main'
git merge --ff-only 'github-bot/gh-2340'
git switch 'main'
git merge 'github-bot/gh-2340'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.