Add rst 1 to store frame variables. Reduces Star Trek from 42339 to 41821

bytes.
This commit is contained in:
David Given 2019-02-07 09:31:38 +01:00
parent 67a9be26d1
commit a5bf2932c8

View file

@ -460,10 +460,20 @@ uses hl_or_de={label,$1} yields %a
pat stl lol $1==$2
with dereg yields de de leaving stl $1
#ifdef USE_I80_RSTS
pat stl sfit($1, 8)
with dereg
kills hlreg, areg
gen
rst {const1, 2}
data1 {const1, $1}
#endif
pat stl
with dereg
uses hlreg={const2, $1}
gen dad lb
gen
dad lb
mov {m}, e
inx hl
mov {m}, d