README: document xcl disasm flags #2330

Open
romeawayfromhome-rgb wants to merge 1 commit from upstream-pr/2340 into main
romeawayfromhome-rgb commented 2026-11-25 15:42:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by romeawayfromhome-rgb on 2026-11-25T15:42:42Z.


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).
<!-- greyfinch-sync:ivall/xcl:issue:5494523779 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2340). Originally posted by [romeawayfromhome-rgb](https://github.com/romeawayfromhome-rgb) on 2026-11-25T15:42:42Z. --- 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).
fromthemoonx commented 2026-11-25 16:12:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-25T16:02:40Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7167542939 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2340#issuecomment-7167542939). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-11-25T16:02:40Z. --- **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.
DavidM1911 commented 2026-11-25 19:09:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T18:25:21Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7170885524 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2340#issuecomment-7170885524). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T18:25:21Z. --- 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!
luckyteagirl commented 2026-11-26 05:42:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T05:42:42Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:ivall/xcl:review:6069100354 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2340#pullrequestreview-6069100354). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T05:42:42Z. **Review:** COMMENTED --- 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[bot] commented 2026-12-01 02:32:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:32:56Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7298734873 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2340#issuecomment-7298734873). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-12-01T02:32:56Z. --- 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.
Foniass commented 2026-12-01 07:52:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:52:04Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7304582412 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2340#issuecomment-7304582412). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:52:04Z. --- **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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2340:upstream-pr/2340'
git switch 'upstream-pr/2340'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2340'
git switch 'upstream-pr/2340'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2340'
git switch 'upstream-pr/2340'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2340'
git switch 'main'
git merge --squash 'upstream-pr/2340'
git switch 'main'
git merge --ff-only 'upstream-pr/2340'
git switch 'main'
git merge 'upstream-pr/2340'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2330
No description provided.