X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=rmac.c;h=6dd9475d7db3b7a7aa848820977d45f2e78bdf75;hp=fa64f777c72f866e5601ab7f305b897b23ea0c7b;hb=82307651be6db411532b317a5ebc6edd933eea8d;hpb=daf2f61a3664329ae7f9609e1e14da2b8780fd10 diff --git a/rmac.c b/rmac.c index fa64f77..6dd9475 100644 --- a/rmac.c +++ b/rmac.c @@ -15,7 +15,7 @@ #include "sect.h" #include "mark.h" #include "macro.h" -#include "risca.h" +#include "riscasm.h" #include "direct.h" #include "version.h" #include "debug.h" @@ -37,7 +37,6 @@ int rgpu, rdsp; // Assembling Jaguar GPU or DSP code int list_fd; // File to write listing to int regbank; // RISC register bank int segpadsize; // Segment padding size -int in_main; // In main memory flag for GPUMAIN int endian; // Host processor endianess char * objfname; // Object filename pointer char * firstfname; // First source filename @@ -66,7 +65,8 @@ static int qsz; // Size of each reco static int thresh; // THRESHold in chars static int mthresh; // MTHRESHold in chars - +// This is unused BOLLOCKS +#if 0 // // qst: Do a quicksort. First, find the median element, and put that one in the // first place as the discriminator. (This "median" is just the median of the @@ -299,8 +299,9 @@ int rmac_qsort(char * base, int n, int size, int (*compar)()) return 0; } +#endif - +#if 0 // // Allocate memory; Panic and Quit if we Run Out // @@ -338,6 +339,7 @@ char * amem(LONG amount) return p; } +#endif // @@ -560,7 +562,6 @@ int process(int argc, char ** argv) orgwarning = 0; // No ORG warning issued a_amount = 0; segpadsize = 2; // Initialise segment padding size - in_main = 0; // Initialise modules InitSymbolTable(); // Symbol table @@ -573,7 +574,7 @@ int process(int argc, char ** argv) init_list(); // Listing generator // Process command line arguments and assemble source files - for(argno = 0; argno < argc; ++argno) + for(argno=0; argno 1) { - status = process(argc - 1, argv + 1); - } - else - { - display_version(); - display_help(); + return process(argc - 1, argv + 1); } - return status; + display_version(); + display_help(); + + return 0; }