From 1759b1f02ba02b4fb1311dd9cd8efb4e711f3726 Mon Sep 17 00:00:00 2001 From: MrKOSMOS Date: Sat, 15 Nov 2025 00:38:22 +0000 Subject: [PATCH 1/5] Update hex.bas Grammar and description fix --- src/lib/arch/zx48k/stdlib/hex.bas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/arch/zx48k/stdlib/hex.bas b/src/lib/arch/zx48k/stdlib/hex.bas index be29fea23..a92f4f175 100644 --- a/src/lib/arch/zx48k/stdlib/hex.bas +++ b/src/lib/arch/zx48k/stdlib/hex.bas @@ -21,10 +21,10 @@ REM Avoid recursive / multiple inclusion ' function HEX ' ' Parameters: -' num : 32 bit unsigned integer numbre +' num : 32 bit unsigned integer number ' ' Returns: -' 4 chars str containing the HEX string representation +' 8 chars str containing the HEX string representation ' ---------------------------------------------------------------- function FASTCALL hex(num as ULong) as String asm From 5299c1da66a4da2ff76157d3fa02c067d02fe76d Mon Sep 17 00:00:00 2001 From: MrKOSMOS Date: Mon, 17 Nov 2025 10:01:02 +0000 Subject: [PATCH 2/5] Update args_parser.py Update the CLI frontend to match args_config.py warnings --- src/zxbc/args_parser.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/zxbc/args_parser.py b/src/zxbc/args_parser.py index 7fe196b9d..ee227e598 100644 --- a/src/zxbc/args_parser.py +++ b/src/zxbc/args_parser.py @@ -66,13 +66,13 @@ def parser() -> argparse.ArgumentParser: "-T", "--tzx", action="store_true", - help="Sets output format to .tzx (default is .bin).", + help="Sets output format to .tzx (default is .bin). DEPRECATED. Use -f", ) output_file_type_group.add_argument( "-t", "--tap", action="store_true", - help="Sets output format to .tap (default is .bin).", + help="Sets output format to .tap (default is .bin). DEPRECATED. Use -f", ) output_file_type_group.add_argument( "-A", @@ -84,7 +84,7 @@ def parser() -> argparse.ArgumentParser: "-E", "--emit-backend", action="store_true", - help="Emits backend code (IR) instead of ASM or binary.", + help="Emits backend code (IR) instead of ASM or binary. DEPRECATED. Use -f", ) output_file_type_group.add_argument( "--parse-only", action="store_true", help="Only parses to check for syntax and semantic errors" @@ -104,7 +104,7 @@ def parser() -> argparse.ArgumentParser: action="store_true", dest="basic", default=None, - help="Creates a BASIC loader which loads the rest of the CODE. Requires -T ot -t", + help="Creates a BASIC loader which loads the rest of the CODE. Requires one of sna, tzx, tap or z80 output format", ) parser_.add_argument( "-a", "--autorun", action="store_true", default=None, help="Sets the program to be run once loaded" From 515974cdd496482a599b3020a9d060aacc2b329d Mon Sep 17 00:00:00 2001 From: Bernardo Grazina Date: Mon, 17 Nov 2025 12:55:15 +0000 Subject: [PATCH 3/5] Update args_parser.py Correcting outdated help text in args_parser.py --- src/zxbc/args_parser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/zxbc/args_parser.py b/src/zxbc/args_parser.py index ee227e598..eb0f4b5ba 100644 --- a/src/zxbc/args_parser.py +++ b/src/zxbc/args_parser.py @@ -51,7 +51,7 @@ def parser() -> argparse.ArgumentParser: "-O", "--optimize", type=int, - help=f"Sets optimization level. 0 = None (default level is {OPTIONS.optimization_level}", + help=f"Sets optimization level. 0 = None (default level is {OPTIONS.optimization_level})", ) parser_.add_argument( "-o", @@ -173,13 +173,13 @@ def parser() -> argparse.ArgumentParser: ) parser_.add_argument("--version", action="version", version=f"%(prog)s {VERSION}") parser_.add_argument( - "--append-binary", default=[], action="append", help="Appends binary to tape file (only works with -t or -T)" + "--append-binary", default=[], action="append", help="Appends binary to tape file (only works with output formats tzx and tap)" ) parser_.add_argument( "--append-headless-binary", default=[], action="append", - help="Appends binary to tape file (only works with -t or -T)", + help="Appends binary to tape file (only works with output formats tzx and tap)", ) parser_.add_argument( "-N", "--zxnext", action="store_true", default=None, help="Enables ZX Next asm extended opcodes" From f319d284c86fa09e38012f344d039ac75b4f5e30 Mon Sep 17 00:00:00 2001 From: MrKOSMOS Date: Mon, 17 Nov 2025 13:57:22 +0000 Subject: [PATCH 4/5] Update args_parser.py Changes to reduce line length --- src/zxbc/args_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zxbc/args_parser.py b/src/zxbc/args_parser.py index eb0f4b5ba..e650fee1d 100644 --- a/src/zxbc/args_parser.py +++ b/src/zxbc/args_parser.py @@ -104,7 +104,7 @@ def parser() -> argparse.ArgumentParser: action="store_true", dest="basic", default=None, - help="Creates a BASIC loader which loads the rest of the CODE. Requires one of sna, tzx, tap or z80 output format", + help="Creates a BASIC loader which loads the rest of the CODE. Requires one of sna, tzx, tap or z80 output", ) parser_.add_argument( "-a", "--autorun", action="store_true", default=None, help="Sets the program to be run once loaded" @@ -173,7 +173,7 @@ def parser() -> argparse.ArgumentParser: ) parser_.add_argument("--version", action="version", version=f"%(prog)s {VERSION}") parser_.add_argument( - "--append-binary", default=[], action="append", help="Appends binary to tape file (only works with output formats tzx and tap)" + "--append-binary", default=[], action="append", help="Appends binary to tape file (only works with output tzx and tap)" ) parser_.add_argument( "--append-headless-binary", From b00d5d4677f19dfa09256d2da34c322dc866d8a4 Mon Sep 17 00:00:00 2001 From: MrKOSMOS Date: Mon, 17 Nov 2025 14:00:09 +0000 Subject: [PATCH 5/5] Update args_parser.py Further line length fix --- src/zxbc/args_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zxbc/args_parser.py b/src/zxbc/args_parser.py index e650fee1d..1cbd91564 100644 --- a/src/zxbc/args_parser.py +++ b/src/zxbc/args_parser.py @@ -173,7 +173,7 @@ def parser() -> argparse.ArgumentParser: ) parser_.add_argument("--version", action="version", version=f"%(prog)s {VERSION}") parser_.add_argument( - "--append-binary", default=[], action="append", help="Appends binary to tape file (only works with output tzx and tap)" + "--append-binary", default=[], action="append", help="Appends binary to tape file (only works with tzx and tap)" ) parser_.add_argument( "--append-headless-binary",