Use a helper function for cai --- only saves two bytes per invocation, but is

much less embarassing.
This commit is contained in:
David Given 2019-02-06 20:36:23 +01:00
parent 2b0629f87f
commit 08b92153a0
2 changed files with 11 additions and 5 deletions

10
mach/i80/libem/pchl.s Normal file
View file

@ -0,0 +1,10 @@
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
.define .pchl
.pchl:
pchl

View file

@ -1819,11 +1819,7 @@ gen Call {label,$1}
pat cai
with hlreg
kills ALL
uses dereg
gen lxi de,{label,1f}
push de
pchl.
1:
gen Call {label, ".pchl"}
pat lfr $1==2 yields de