mirror of
https://github.com/ksherlock/hystricomorph.git
synced 2024-05-31 23:41:29 +00:00
more descriptive variable name
This commit is contained in:
parent
d46fae7cf0
commit
33ac5e0a92
|
@ -49,7 +49,7 @@ def generate_asm(asm, d, level):
|
||||||
short_m = single and not double
|
short_m = single and not double
|
||||||
|
|
||||||
mask = 0
|
mask = 0
|
||||||
tay = False
|
save_a = False
|
||||||
if flag_i:
|
if flag_i:
|
||||||
single.sort(key = or_mask)
|
single.sort(key = or_mask)
|
||||||
double.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])
|
a = set([or_mask(x) for x in double])
|
||||||
b = set([or_mask(x) for x in single])
|
b = set([or_mask(x) for x in single])
|
||||||
|
|
||||||
if (0x2000 in a) and (0x0020 in a): tay = True
|
if (0x2000 in a) and (0x0020 in a): save_a = True
|
||||||
if (0x0000 in b) and (0x0020 in a): tay = True
|
if (0x0000 in b) and (0x0020 in a): save_a = True
|
||||||
if (0x0000 in b) and (0x2020 in a): tay = True
|
if (0x0000 in b) and (0x2020 in a): save_a = True
|
||||||
|
|
||||||
|
|
||||||
count = len(d)
|
count = len(d)
|
||||||
|
@ -81,7 +81,7 @@ def generate_asm(asm, d, level):
|
||||||
asm.emit("ldy #{}".format(level * 2), 3)
|
asm.emit("ldy #{}".format(level * 2), 3)
|
||||||
asm.emit("lda (cp),y", 2)
|
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)
|
if flag_i: mask = mask_char(asm, short_m, 0, mask)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user