commit 3a834fdfc1f419275b179ff2dec8da5d3b857f37
parent fd55e929e1512764439ae3f03feab9d331465af3
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date: Fri, 11 Nov 2022 08:56:28 +0000
Optimise “#xy STH” to “LITr xy”.
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/projects/library/asma.tal b/projects/library/asma.tal
@@ -449,7 +449,7 @@
,asma-parse-hex-digit JSR
DUP #f0 AND ,&fail JCN
LITr 40 SFT2r
- #00 STH STH ADD2r
+ LITr 00 STH ADD2r
INC2
,&loop JMP
diff --git a/projects/library/helpers.tal b/projects/library/helpers.tal
@@ -85,7 +85,7 @@
&number
LIT2r 000a MUL2r
- LDAk #30 SUB #00 STH STH ADD2r
+ LDAk #30 SUB LITr 00 STH ADD2r
INC2
LDAk #3039 IN-RANGE ,&number JCN