Today I want to link a C file, with an assembly module which is fixed in place, while also allowing the linker to link the CRT0 into the configuration.
Makefile:
all: test.bin
junk.o: junk.asm
zcc -o junk.o -c junk.asm
test.o: test.c
zcc -o test.o -c test.c
test.bin: test.o junk.o
zcc +rex -o test.bin test.o junk.o
$ cat junk.asm
org $8100
junk:
xor a
jp junk
However, the z88 linker has simply added my assembly module to the end of the binary image and not at $8100(excerpt...)
l8031h:
xor a
jp l8031h
No comments:
Post a Comment