X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=rmac.c;h=57c3b376810851818a1b9d281a1fd7af70d469af;hp=615d84d7cdec1eea5d9c013093e4c85d501ed9b5;hb=0951a3e28907fbaf89a10c5201b71d8080ffe5a8;hpb=b57de9c1d9a47f152b590f1cdbd05a2910667ce4 diff --git a/rmac.c b/rmac.c index 615d84d..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 @@ -168,6 +169,7 @@ void DisplayHelp(void) " ~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" @@ -430,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]) { @@ -443,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++;