From cf4f1724d9060fa4f140907bae8bbb7700d13d94 Mon Sep 17 00:00:00 2001 From: adrianpbrown <19332707+adrianpbrown@users.noreply.github.com> Date: Wed, 27 Aug 2025 18:48:57 +0100 Subject: [PATCH 1/2] Fixed issue with Struct symbols --- src/pyz80/pyz80.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyz80/pyz80.py b/src/pyz80/pyz80.py index 7c58105..e9d1bbc 100644 --- a/src/pyz80/pyz80.py +++ b/src/pyz80/pyz80.py @@ -2092,7 +2092,7 @@ def do_pass(p, wholefile, this_currentfilename): if len(symbol.split()) > 1: fatal("Whitespace not allowed in symbol name") - if symbol and (opcode[0:3].upper() !="EQU") and (ifstate < 2) and (macrostate == 0): + if (symbol and (opcode[0:3].upper() !="EQU") and (opcode[0:6].upper() !="STRUCT") and (opcode[0:5].upper() !="MACRO") and (ifstate < 2) and (macrostate == 0) and structstate == 0 ): if p==1: set_symbol(symbol, origin, is_label=True) elif get_symbol(symbol) != origin: From db108156eaf9d52a5fe40a46dd04a75a4fe511bf Mon Sep 17 00:00:00 2001 From: adrianpbrown <19332707+adrianpbrown@users.noreply.github.com> Date: Wed, 27 Aug 2025 18:50:26 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 8aa0c26..521afb3 100644 --- a/README.md +++ b/README.md @@ -574,6 +574,11 @@ INFORMATION PROVIDED BY THE PROGRAM AND THE DOCUMENTATION. ## Release History +Version 1.3.1, 27 August 2025 + + - Fixed issue where symbols were being defined for elemnts within a struct without + the structure prefix + Version 1.3.0, 25 July 2025 - Converted to Python package installed via pip, to simplify use.