From becc9094c8009c1d120bf2fbe4d7ac5f4ad85e02 Mon Sep 17 00:00:00 2001 From: Byron Lathi Date: Wed, 23 Aug 2023 21:12:15 -0700 Subject: [PATCH] Don't save segments as separate files --- sw/script/o65dump.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sw/script/o65dump.py b/sw/script/o65dump.py index 68cc956..637de94 100755 --- a/sw/script/o65dump.py +++ b/sw/script/o65dump.py @@ -90,8 +90,8 @@ def main() -> None: for option in o65.options: print(f"Type: {option[1]}, Data: {option[2]}") - with open("text.bin", "wb") as textfile: - textfile.write(o65.text) + print(f"Text size: {len(o65.text)}") + print(f"Data size: {len(o65.data)}") for item in o65.exports: print(f"Name: {item[0]} Addr: {item[2]:#x}")