New version with new assembler, link editor

This commit is contained in:
ceriel 1987-02-02 10:55:41 +00:00
parent dc6b14760d
commit 8ac474583b

View file

@ -5,11 +5,13 @@ var s=2
var l=4 var l=4
var f=4 var f=4
var d=8 var d=8
var NAME=i8080 var NAME=i80
var M=i80 var M=i80
var LIB=lib/{M}/tail_ var LIB=lib/{M}/tail_
var RT=lib/{M}/head_ var RT=lib/{M}/head_
var INCLUDES=-I{EM}/include -I/usr/include var CPP_F=
var INCLUDES=-I{EM}/include/_tail_cc -I{EM}/include/_tail_mon
var ALIGN=-a0:2 -a1:2 -a2:2 -a3:2
name be name be
from .m.g from .m.g
to .s to .s
@ -18,19 +20,24 @@ name be
stdout stdout
need .e need .e
end end
name asld name as
from .s.a from .s
to .out to .o
outfile a.out
program {EM}/lib/{M}/as program {EM}/lib/{M}/as
args - -o > <
prep cond
end
name led
from .o.a
to .out
program {EM}/lib/em_led
mapflag -l* LNAME={EM}/{LIB}* mapflag -l* LNAME={EM}/{LIB}*
mapflag -i IFILE={EM}/{RT}i args -b0:0x1000 (.e:{HEAD}={ALIGN} {SEPID?} {EM}/{RT}em) \
args {IFILE?} (.e:{HEAD}={EM}/{RT}em) \ ({RTS}:.b.c={EM}/{RT}cc) ({RTS}:.p={EM}/{RT}pc) -o > < \
({RTS}:.b.c={EM}/{RT}cc) ({RTS}:.p={EM}/{RT}pc) -o > < \
(.p:{TAIL}={EM}/{LIB}pc) \ (.p:{TAIL}={EM}/{LIB}pc) \
(.b:{TAIL}={EM}/{LIB}bc) \ (.b:{TAIL}={EM}/{LIB}bc) \
(.b.c:{TAIL}={EM}/{LIB}cc.1s {EM}/{LIB}cc.2g) \ (.b.c:{TAIL}={EM}/{LIB}cc.1s {EM}/{LIB}cc.2g) \
(.b.c.p:{TAIL}={EM}/{LIB}mon) \ (.b.c.p:{TAIL}={EM}/{LIB}mon) \
(.e:{TAIL}={EM}/{LIB}em {EM}/{LIB}sys) (.e:{TAIL}={EM}/{LIB}em {EM}/{LIB}sys {EM}/lib/{M}/end_em)
linker linker
end end