Added grind support

This commit is contained in:
ceriel
1991-11-01 11:53:42 +00:00
parent 6d553a379a
commit 6f4094c7c4
22 changed files with 179 additions and 39 deletions

View File

@@ -27,3 +27,4 @@ symboldef.c
text1.c
text2.c
text4.c
dbsym.c

View File

@@ -0,0 +1,26 @@
#include "header.h"
#ifndef OWN_SYMB
B_symbstr(s, len, type, add, val, added)
char *s, *val;
arith added;
{
if (! s) s = "";
fprint(codefile, ".symb \"%s\", %s+%ld, 0x%x, %d\n", s, val, (long) added, type, add);
}
B_symbcst(s, len, type, add, val)
char *s;
arith val;
{
if (! s) s = "";
fprint(codefile, ".symb \"%s\", %ld, 0x%x, %d\n", s, val, type, add);
}
B_symd(s, len, type, add)
char *s;
{
if (! s) s = "";
fprint(codefile, ".symd \"%s\", 0x%x, %d\n", s, type, add);
}
#endif

View File

@@ -17,7 +17,7 @@ all: bottom.$(SUF) con1.$(SUF) con2.$(SUF) con4.$(SUF) end_back.$(SUF) \
reloc2.$(SUF) reloc4.$(SUF) bss.$(SUF) rom1.$(SUF) rom2.$(SUF) \
rom4.$(SUF) set_global.$(SUF) set_local.$(SUF) switchseg.$(SUF) \
symboldef.$(SUF) do_open.$(SUF) do_close.$(SUF) text1.$(SUF) \
text2.$(SUF) text4.$(SUF)
text2.$(SUF) text4.$(SUF) dbsym.$(SUF)
bottom.$(SUF) : $(SRC_DIR)/mach.h back.h header.h $(SOURCE)/bottom.c
$(CC) $(CFLAGS) -c $(SOURCE)/bottom.c
@@ -93,3 +93,6 @@ switchseg.$(SUF) : header.h back.h $(SRC_DIR)/mach.h $(SOURCE)/switchseg.c
symboldef.$(SUF) : header.h back.h $(SRC_DIR)/mach.h $(SOURCE)/symboldef.c
$(CC) $(CFLAGS) -c $(SOURCE)/symboldef.c
dbsym.$(SUF) : header.h back.h $(SRC_DIR)/mach.h $(SOURCE)/dbsym.c
$(CC) $(CFLAGS) -c $(SOURCE)/dbsym.c