X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=rmac.c;h=6dd9475d7db3b7a7aa848820977d45f2e78bdf75;hp=9d7522d93eea7e7eb50d90606790acd8b4958e8d;hb=82307651be6db411532b317a5ebc6edd933eea8d;hpb=295836a17362d5f57e171018fb6658f845f419e8 diff --git a/rmac.c b/rmac.c index 9d7522d..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 @@ -853,27 +854,19 @@ int get_endianess(void) // int main(int argc, char ** argv) { - int status; - int i; - perm_verb_flag = 0; // Clobber "permanent" verbose flag cmdlnexec = argv[0]; // Obtain executable name endian = get_endianess(); // Get processor endianess - for(i=0; i 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; }