From 33ac5e0a927ef18bbad66d92b13d64413cab37dd Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sun, 11 Aug 2019 01:11:39 -0400 Subject: [PATCH] more descriptive variable name --- string_compiler.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/string_compiler.py b/string_compiler.py index ab165b3..78a3bfb 100644 --- a/string_compiler.py +++ b/string_compiler.py @@ -49,7 +49,7 @@ def generate_asm(asm, d, level): short_m = single and not double mask = 0 - tay = False + save_a = False if flag_i: single.sort(key = or_mask) double.sort(key = or_mask) @@ -60,9 +60,9 @@ def generate_asm(asm, d, level): a = set([or_mask(x) for x in double]) b = set([or_mask(x) for x in single]) - if (0x2000 in a) and (0x0020 in a): tay = True - if (0x0000 in b) and (0x0020 in a): tay = True - if (0x0000 in b) and (0x2020 in a): tay = True + if (0x2000 in a) and (0x0020 in a): save_a = True + if (0x0000 in b) and (0x0020 in a): save_a = True + if (0x0000 in b) and (0x2020 in a): save_a = True count = len(d) @@ -81,7 +81,7 @@ def generate_asm(asm, d, level): asm.emit("ldy #{}".format(level * 2), 3) asm.emit("lda (cp),y", 2) - if tay: asm.emit("tay", 1) + if save_a: asm.emit("tay", 1) if flag_i: mask = mask_char(asm, short_m, 0, mask)