~rabbits/uxn

3a834fdfc1f419275b179ff2dec8da5d3b857f37 — Andrew Alderwick 4 months ago fd55e92
Optimise “#xy STH” to “LITr xy”.
2 files changed, 2 insertions(+), 2 deletions(-)

M projects/library/asma.tal
M projects/library/helpers.tal
M projects/library/asma.tal => projects/library/asma.tal +1 -1
@@ 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


M projects/library/helpers.tal => projects/library/helpers.tal +1 -1
@@ 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