Skip to content

[AUTOMATED] Decode Motorola S-records independently of target architecture - #1942

Merged
mahaloz merged 1 commit into
Noelo-Lab:mainfrom
thotypous:kuna-motorola-srecord
Nov 24, 2026
Merged

mahaloz merged 1 commit into
Noelo-Lab:mainfrom
thotypous:kuna-motorola-srecord

Conversation

@thotypous

@thotypous thotypous commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Kuna has no reader for Motorola S-record images. This S1/S9 file carries c3 90 at address zero:

printf 'S1050000C390A7\nS9030000FC\n' >/tmp/example.srec
objcopy -I srec -O binary /tmp/example.srec /tmp/example.bin
od -An -tx1 /tmp/example.bin
# c3 90
  • Add a streaming reader that verifies checksums, record counts, and the terminator. Leave addresses and widths intact; image mapping and ISA selection are separate.
  • Run cd decompiler && cargo test -p kuna-analysis loader::srecord::tests. The cases cover a 32-bit start address, bad checksums and counts, and missing or trailing records.

Dependency for the Carmel PR (#1936): the target profile uses this shared Motorola S-record reader.

Model: openai-codex/gpt-6.2-sol

@thotypous thotypous changed the title Decode Motorola S-records independently of target architecture [AUTOMATED] Decode Motorola S-records independently of target architecture Nov 24, 2026
Validate checksums, counts, and termination while streaming unscaled
addresses and borrowed payloads to the input profile.
@thotypous
thotypous marked this pull request as ready for review November 24, 2026 19:51
@thotypous
thotypous force-pushed the kuna-motorola-srecord branch from b9cfa03 to da693e8 Compare November 24, 2026 19:51
@mahaloz
mahaloz merged commit 405ab10 into Noelo-Lab:main Nov 24, 2026
2 checks passed
mahaloz added a commit that referenced this pull request Nov 25, 2026
[AUTOMATED] Brings in main through 8d46211 (#1942 to #1955).  The
corpus file count is 919 (83 datatests, 836 stage tests), the option
docs and the catalog fixture are regenerated, and the stage baseline is
re-recorded: main's 5370 keys plus the 65 assertions of this branch's
six stage tests, with the two catalog rows that name deobfuscate.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013BBaWTo941vG8RLpZJvswN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants