Dear all,
Who can help me about -k and -l commands?
As an example,there are crt0.s,cgb.s,color.c files in
my working directory(\temp\color). I can success the
following steps and get color.gb file.
\temp\bin\as-gbz80 -l -o -s crt0.o crt0.s
\temp\bin\as-gbz80 -l -o -s cgb.o cgb.s
\temp\bin\lcc -Wa-l -Wl-m -Wl-j -c -o color.o color.c
\temp\bin\link-gbz80 -- -yp0x143=0x80 -m -j -u -z
color.gb crt0.o color.o cgb.o
In order to use LIBRARY funtion. I make some changes.
Fist of all I make a c1.lnk file that contain as below.
-yp0x143=0x80
-m
-j
-u
-z
-k d:\temp\color\
-l gb.lib
color.gb
crt0.o
colorbar.o
-e
Second I make a gb.lib file that only has one line
data.
cgb.o
Finally,run the following steps.
\temp\bin\as-gbz80 -l -o -s crt0.o crt0.s
\temp\bin\as-gbz80 -l -o -s cgb.o cgb.s
\temp\bin\lcc -Wa-l -Wl-m -Wl-j -c -o color.o color.c
\temp\bin\link-gbz80 -f c1.lnk
All symbles in cgb.o can not be found .
Please contact me(max@artifnet.com.tw).if you can give
me any information.
Thanks
max