From bd28dbd5426df2c46c414bcc770665309aa1e823 Mon Sep 17 00:00:00 2001 From: Ziemas Date: Thu, 4 Jun 2026 00:13:54 +0200 Subject: [PATCH] Allow emitting full .s files for hasm segments --- CHANGELOG.md | 4 ++++ src/splat/segtypes/common/hasm.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3bac5ee..fcfb2030 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # splat Release Notes +### 0.50.1 + +* Emit full .s file for `hasm` segments when `make_full_disasm_for_code` is enabled. + ### 0.50.0 * We have skipped to version 0.50.0, as this version may introduce several breaking changes and require some extra care when migrating diff --git a/src/splat/segtypes/common/hasm.py b/src/splat/segtypes/common/hasm.py index 7966ca4a..9b06756a 100644 --- a/src/splat/segtypes/common/hasm.py +++ b/src/splat/segtypes/common/hasm.py @@ -24,6 +24,9 @@ def split(self, rom_bytes: bytes): if self.rom_start == self.rom_end: return + if options.opts.make_full_disasm_for_code and options.opts.hasm_in_src_path: + self.split_as_asmtu_file(super().asm_out_path()) + out_path = self.out_path() if out_path and not out_path.exists(): self.split_as_asm_file(out_path)