Optimise “#xy STH” to “LITr xy”.

This commit is contained in:
Andrew Alderwick 2022-11-11 08:56:28 +00:00
parent fd55e929e1
commit 3a834fdfc1
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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