X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=rmac.c;h=57c3b376810851818a1b9d281a1fd7af70d469af;hp=a4b6b42f74e5c9b37c1117dcd2c48d8902e54cd2;hb=76299dcc588e5f5ba7270fd4bacc5872152f088e;hpb=4ca28ba07da9f3848c2e3db0e2e9cbcaa787dd29 diff --git a/rmac.c b/rmac.c index a4b6b42..57c3b37 100644 --- a/rmac.c +++ b/rmac.c @@ -33,6 +33,7 @@ int glob_flag; // Assume undefined symbols are global int lsym_flag; // Include local symbols in object file int sbra_flag; // Warn about possible short branches int prg_flag; // !=0, produce .PRG executable (2=symbols) +int prg_extend; // !=0, output extended .PRG symbols int legacy_flag; // Do stuff like insert code in RISC assembler int obj_format; // Object format flag int debug; // [1..9] Enable debugging levels @@ -161,11 +162,14 @@ void DisplayHelp(void) " o5: Absolute long base displacement to word (off)\n" " o6: Null branches to NOP (off)\n" " o7: clr.l Dx to moveq #0,Dx (off)\n" + " o8: adda.w/l #x,Dy to addq.w/l #x,Dy (off)\n" + " o9: adda.w/l #x,Dy to lea x(Dy),Dy (off)\n" " ~o[value] Turn a specific optimisation off\n" " +oall Turn all optimisations on\n" " ~oall Turn all optimisations off\n" " -p Create an ST .prg (without symbols)\n" " -ps Create an ST .prg (with symbols)\n" + " -px Create an ST .prg (with exsymbols)\n" " Forces -fa\n" " -r[size] Pad segments to boundary size specified\n" " w: word (2 bytes, default alignment)\n" @@ -428,7 +432,8 @@ int Process(int argc, char ** argv) case 'P': /* * -p .PRG generation w/o symbols - * -ps .PRG generation with symbols + * -ps .PRG generation with symbols + * -px .PRG generation with extended symbols */ switch (argv[argno][2]) { @@ -441,6 +446,11 @@ int Process(int argc, char ** argv) prg_flag = 2; break; + case 'x': + case 'X': + prg_flag = 3; + break; + default: printf("-p: syntax error\n"); errcnt++;