Added grind support
This commit is contained in:
@@ -27,3 +27,4 @@ symboldef.c
|
||||
text1.c
|
||||
text2.c
|
||||
text4.c
|
||||
dbsym.c
|
||||
|
||||
26
util/ceg/ce_back/as_back/dbsym.c
Normal file
26
util/ceg/ce_back/as_back/dbsym.c
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user