2 // RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System
3 // DIRECT.C - Directive Handling
4 // Copyright (C) 199x Landon Dyer, 2017 Reboot and Friends
5 // RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
6 // Source utilised with the kind permission of Landon Dyer
26 TOKEN exprbuf[128]; // Expression buffer
27 SYM * symbolPtr[1000000]; // Symbol pointers table
28 static long unused; // For supressing 'write' warnings
29 char buffer[256]; // Scratch buffer for messages
30 int stringtype; // Non-zero if we need any special string conversions
32 // Function prototypes
60 int d_equrundef(void);
71 // Directive handler table
82 (void *)d_init, // 9 init
84 (void *)d_goto, // 11 goto
85 (void *)d_dc, // 12 dc
86 (void *)d_ds, // 13 ds
87 d_undmac, // 14 undefmac
90 (void *)d_dcb, // 17 dcb
94 d_incbin, // 21 .incbin //load
95 d_unimpl, // 22 disable
96 d_unimpl, // 23 enable
98 d_regbank0, // 25 .regbank0
99 d_regbank1, // 26 .regbank1
101 d_assert, // 28 assert
103 d_unimpl, // 30* endif
104 d_unimpl, // 31* endc
106 d_include, // 33 include
108 d_unimpl, // 35* macro
109 ExitMacro, // 36* exitm
110 d_unimpl, // 37* endm
114 d_phrase, // 41* endr
115 d_dphrase, // 42 struct
116 d_qphrase, // 43 ends
118 d_subttl, // 45 subttl
122 d_noclear, // 49 .noclear
123 d_equrundef, // 50 .equrundef/.regundef
124 d_ccundef, // 51 .ccundef
125 d_print, // 52 .print
126 d_cstruct, // 53 .cstruct
127 d_jpad, // 54 .jpad (deprecated)
128 d_nojpad, // 55 .nojpad (deprecated)
129 d_gpumain, // 56 .gpumain (deprecated)
130 d_prgflags, // 57 .prgflags
136 // .error - Abort compilation, printing an error message
138 int d_error(char *str)
141 return error("error directive encountered - aborting assembling");
147 return error(string[tok[1]]);
150 return error("error directive encountered - aborting assembling");
157 // .warn - Just display a warning on screen
159 int d_warn(char *str)
162 return warn("WARNING WARNING WARNING");
168 return warn(string[tok[1]]);
171 return warn("WARNING WARNING WARNING");
184 if (!rgpu && !rdsp && !m6502)
185 return error(".org permitted only in gpu/dsp and 6502 sections");
187 if (abs_expr(&address) == ERROR)
189 error("cannot determine org'd address");
200 // 6502. We also kludge `lsloc' so the listing generator doesn't try
201 // to spew out megabytes.
202 if (address > 0xFFFF)
203 return error(range_error);
205 if (sloc != currentorg[0])
207 currentorg[1] = sloc;
211 currentorg[0] = address;
213 lsloc = sloc = address;
214 chptr = scode->chptr + address;
229 char prntstr[LNSIZ]; // String for PRINT directive
230 char format[LNSIZ]; // Format for PRINT directive
231 int formatting = 0; // Formatting on/off
232 int wordlong = 0; // WORD = 0, LONG = 1
233 int outtype = 0; // 0:hex, 1:decimal, 2:unsigned
235 VALUE eval; // Expression value
236 WORD eattr; // Expression attributes
237 SYM * esym; // External symbol involved in expr.
238 TOKEN r_expr[EXPRSIZE];
245 sprintf(prntstr, "%s", string[tok[1]]);
246 printf("%s", prntstr);
249 unused = write(list_fd, prntstr, (LONG)strlen(prntstr));
256 if (tok[1] != SYMBOL)
259 // strcpy(prntstr, (char *)tok[2]);
260 strcpy(prntstr, string[tok[2]]);
264 case 'l': case 'L': wordlong = 1; break;
265 case 'w': case 'W': wordlong = 0; break;
266 case 'x': case 'X': outtype = 0; break;
267 case 'd': case 'D': outtype = 1; break;
268 case 'u': case 'U': outtype = 2; break;
270 error("unknown print format flag");
280 if (expr(r_expr, &eval, &eattr, &esym) != OK)
286 case 0: strcpy(format, "%X"); break;
287 case 1: strcpy(format, "%d" ); break;
288 case 2: strcpy(format, "%u" ); break;
292 sprintf(prntstr, format, eval);
294 sprintf(prntstr, format, eval & 0xFFFF);
296 printf("%s", prntstr);
299 unused = write(list_fd, prntstr, (LONG)strlen(prntstr));
315 error("illegal print token");
321 // Undefine an equated condition code
327 // Check that we are in a RISC section
330 error(".ccundef must be defined in .gpu/.dsp section");
336 error("syntax error; expected symbol");
340 ccname = lookup(string[tok[1]], LABEL, 0);
342 // Make sure symbol is a valid ccdef
343 if (!ccname || !(ccname->sattre & EQUATEDCC))
345 error("invalid equated condition name specified");
349 ccname->sattre |= UNDEF_CC;
356 // Undefine an equated register
358 int d_equrundef(void)
362 // Check that we are in a RISC section
364 return error(".equrundef/.regundef must be defined in .gpu/.dsp section");
368 // Skip preceeding or seperating commas (if any)
372 // Check we are dealing with a symbol
374 return error("syntax error; expected symbol");
376 // Lookup and undef if equated register
377 regname = lookup(string[tok[1]], LABEL, 0);
379 if (regname && (regname->sattre & EQUATEDREG))
381 // Reset the attributes of this symbol...
383 regname->sattre &= ~(EQUATEDREG | BANK_0 | BANK_1);
384 regname->sattre |= UNDEF_EQUR;
387 // Skip over symbol token and address
396 // Do not allow use of the CLR.L opcode
400 warn("CLR.L opcode ignored...");
406 // Include binary file
412 long pos, size, bytesRead;
417 // Check to see if we're in BSS, and, if so, throw an error
420 errors("cannot include binary file \"%s\" in BSS section", string[tok[1]]);
426 error("syntax error; string missing");
430 // Attempt to open the include file in the current directory, then (if that
431 // failed) try list of include files passed in the enviroment string or by
433 if ((fd = open(string[tok[1]], _OPEN_INC)) < 0)
435 for(i=0; nthpath("RMACPATH", i, buf1)!=0; i++)
439 // Append path char if necessary
440 if (fd > 0 && buf1[fd - 1] != SLASHCHAR)
441 strcat(buf1, SLASHSTRING);
443 strcat(buf1, string[tok[1]]);
445 if ((fd = open(buf1, _OPEN_INC)) >= 0)
449 return errors("cannot open: \"%s\"", string[tok[1]]);
454 size = lseek(fd, 0L, SEEK_END);
455 pos = lseek(fd, 0L, SEEK_SET);
458 DEBUG { printf("INCBIN: File '%s' is %li bytes.\n", string[tok[1]], size); }
460 char * fileBuffer = (char *)malloc(size);
461 bytesRead = read(fd, fileBuffer, size);
463 if (bytesRead != size)
465 sprintf(msg, "was only able to read %li bytes from binary file (%s, %li bytes)", bytesRead, string[tok[1]], size);
470 memcpy(chptr, fileBuffer, size);
485 // Set RISC register banks
489 // Set active register bank zero
497 // Set active register bank one
504 // Helper function, to cut down on mistakes & typing
506 static inline void SkipBytes(unsigned bytesToSkip)
511 if ((scattr & SBSS) == 0)
513 chcheck(bytesToSkip);
514 D_ZEROFILL(bytesToSkip);
521 orgaddr += bytesToSkip;
527 // Adjust location to an EVEN value
532 return error(in_6502mode);
534 unsigned skip = (rgpu || rdsp ? orgaddr : sloc) & 0x01;
538 if ((scattr & SBSS) == 0)
557 // Adjust location to a LONG value
561 unsigned lower2Bits = (rgpu || rdsp ? orgaddr : sloc) & 0x03;
562 unsigned bytesToSkip = (0x04 - lower2Bits) & 0x03;
563 SkipBytes(bytesToSkip);
570 // Adjust location to a PHRASE value
572 // N.B.: We have to handle the GPU/DSP cases separately because you can embed
573 // RISC code in the middle of a regular 68K section. Also note that all
574 // of the alignment pseudo-ops will have to be fixed this way.
576 // This *must* behave differently when in a RISC section, as following sloc
577 // (instead of orgaddr) will fuck things up royally. Note that we do it this
578 // way because you can embed RISC code in a 68K section, and have the origin
579 // pointing to a different alignment in the RISC section than the 68K section.
583 unsigned lower3Bits = (rgpu || rdsp ? orgaddr : sloc) & 0x07;
584 unsigned bytesToSkip = (0x08 - lower3Bits) & 0x07;
585 SkipBytes(bytesToSkip);
592 // Adjust location to a DPHRASE value
596 unsigned lower4Bits = (rgpu || rdsp ? orgaddr : sloc) & 0x0F;
597 unsigned bytesToSkip = (0x10 - lower4Bits) & 0x0F;
598 SkipBytes(bytesToSkip);
605 // Adjust location to a QPHRASE value
609 unsigned lower5Bits = (rgpu || rdsp ? orgaddr : sloc) & 0x1F;
610 unsigned bytesToSkip = (0x20 - lower5Bits) & 0x1F;
611 SkipBytes(bytesToSkip);
618 // Do auto-even. This must be called ONLY if 'sloc' is odd.
620 // This is made hairy because, if there was a label on the line, we also have
621 // to adjust its value. This won't work with more than one label on the line,
622 // which is OK since multiple labels are only allowed in AS68 kludge mode, and
623 // the C compiler is VERY paranoid and uses ".even" whenever it can
625 // N.B.: This probably needs the same fixes as above...
629 if (cursect != M6502)
632 sloc++; // Bump BSS section
634 D_byte(0); // Deposit 0.b in non-BSS
636 if (lab_sym != NULL) // Bump label if we have to
643 // Unimplemened directive error
647 return error("unimplemented directive");
652 // Return absolute (not TDB) and defined expression or return an error
654 int abs_expr(VALUE * a_eval)
658 if (expr(exprbuf, a_eval, &eattr, NULL) < 0)
661 if (!(eattr & DEFINED))
662 return error(undef_error);
665 return error(rel_error);
672 // Hand symbols in a symbol-list to a function (kind of like mapcar...)
674 int symlist(int(* func)())
676 const char * em = "symbol list syntax";
683 if ((*func)(string[tok[1]]) != OK)
702 // .include "filename"
712 if (*tok == STRING) // Leave strings ALONE
714 else if (*tok == SYMBOL) // Try to append ".s" to symbols
716 strcpy(buf, string[*++tok]);
720 else // Punt if no STRING or SYMBOL
721 return error("missing filename");
723 // Make sure the user didn't try anything like:
724 // .include equates.s
726 return error("extra stuff after filename -- enclose it in quotes");
728 // Attempt to open the include file in the current directory, then (if that
729 // failed) try list of include files passed in the enviroment string or by
731 if ((j = open(fn, 0)) < 0)
733 for(i=0; nthpath("RMACPATH", i, buf1)!=0; i++)
737 // Append path char if necessary
738 if (j > 0 && buf1[j - 1] != SLASHCHAR)
739 strcat(buf1, SLASHSTRING);
743 if ((j = open(buf1, 0)) >= 0)
747 return errors("cannot open: \"%s\"", fn);
757 // .assert expression [, expression...]
764 for(; expr(exprbuf, &eval, &eattr, NULL)==OK; ++tok)
766 if (!(eattr & DEFINED))
767 return error("forward or undefined .assert");
770 return error("assert failure");
782 // .globl symbol [, symbol] <<<cannot make local symbols global>>>
789 return error("cannot .globl local symbol");
791 if ((sy = lookup(p, LABEL, 0)) == NULL)
793 sy = NewSymbol(p, LABEL, 0);
796 //printf("glob1: Making global symbol: attr=%04X, eattr=%08X, %s\n", sy->sattr, sy->sattre, sy->sname);
808 return error(in_6502mode);
816 // .prgflags expression
823 return error("PRGFLAGS requires value");
824 else if (abs_expr(&eval) == OK)
831 return error("PRGFLAGS requires value");
844 return error(in_6502mode);
850 else if (abs_expr(&eval) != OK)
865 return error("directive forbidden in gpu/dsp mode");
867 return error(in_6502mode);
882 return error("directive forbidden in gpu/dsp mode");
884 return error(in_6502mode);
899 return error("directive forbidden in gpu/dsp mode");
901 return error(in_6502mode);
914 // .ds[.size] expression
918 DEBUG { printf("Directive: .ds.[size] = %u, sloc = $%X\n", siz, sloc); }
922 if (cursect != M6502)
924 if ((siz != SIZB) && (sloc & 1)) // Automatic .even
928 if (abs_expr(&eval) != OK)
931 // Check to see if the value being passed in is negative (who the hell does
932 // that?--nobody does; it's the code gremlins, or rum, that does it)
934 return error("negative sizes not allowed");
936 // In non-TDB section (BSS, ABS and M6502) just advance the location
937 // counter appropriately. In TDB sections, deposit (possibly large) chunks
938 // of zeroed memory....
939 if ((scattr & SBSS) || cursect == M6502)
945 if (cursect == M6502)
948 just_bss = 1; // No data deposited (8-bit CPU mode)
952 dep_block(eval, siz, (VALUE)0, (WORD)(DEFINED | ABS), NULL);
961 // dc.b, dc.w / dc, dc.l, dc.i
969 if ((scattr & SBSS) != 0)
970 return error("illegal initialization of section");
972 // Do an auto_even if it's not BYTE sized (hmm, should we be doing this???)
973 if (cursect != M6502 && (siz != SIZB) && (sloc & 1))
976 // Check to see if we're trying to set LONGS on a non 32-bit aligned
977 // address in a GPU or DSP section, in their local RAM
978 if ((siz == SIZL) && (orgaddr & 0x03)
979 && ((rgpu && (orgaddr >= 0xF03000) && (orgaddr <= 0xF03FFFF))
980 || (rdsp && (orgaddr >= 0xF1B000) && (orgaddr <= 0xF1CFFFF))))
981 warn("depositing LONGs on a non-long address in local RAM");
985 // dc.b 'string' [,] ...
986 if (siz == SIZB && *tok == STRING && (tok[2] == ',' || tok[2] == EOL))
988 uint32_t i = strlen(string[tok[1]]);
990 if ((challoc - ch_size) < i)
993 if (stringtype == NORMAL)
995 for (p = string[tok[1]]; *p != EOS; p++)
998 else if(stringtype == A8INT)
1000 for (p = string[tok[1]]; *p != EOS; p++)
1001 D_byte(strtoa8[*p]);
1005 error("String format not supported yet");
1013 int movei = 0; // MOVEI flag for dc.i
1022 // dc.x <expression>
1025 if (expr(exprbuf, &eval, &eattr, &esym) != OK)
1028 uint16_t tdb = eattr & TDB;
1029 uint16_t defined = eattr & DEFINED;
1031 if ((challoc - ch_size) < 4)
1039 AddFixup(FU_BYTE | FU_SEXT, sloc, exprbuf);
1044 if (eval + 0x100 >= 0x200)
1046 sprintf(buffer, "%s (value = $%X)", range_error, eval);
1047 return error(buffer);
1051 return error("non-absolute byte value");
1061 AddFixup(FU_WORD | FU_SEXT, sloc, exprbuf);
1066 if (eval + 0x10000 >= 0x20000)
1067 return error(range_error);
1070 MarkRelocatable(cursect, sloc, tdb, MWORD, NULL);
1072 // Deposit 68000 or 6502 (byte-reversed) word
1073 if (cursect != M6502)
1082 return error(in_6502mode);
1087 AddFixup(FU_LONG | FU_MOVEI, sloc, exprbuf);
1089 AddFixup(FU_LONG, sloc, exprbuf);
1096 MarkRelocatable(cursect, sloc, tdb, MLONG, NULL);
1099 eval = WORDSWAP32(eval);
1117 // dcb[.siz] expr1,expr2 - Make 'expr1' copies of 'expr2'
1124 DEBUG { printf("dcb: section is %s%s%s (scattr=$%X)\n", (cursect & TEXT ? "TEXT" : ""), (cursect & DATA ? " DATA" : ""), (cursect & BSS ? "BSS" : ""), scattr); }
1126 if ((scattr & SBSS) != 0)
1127 return error("illegal initialization of section");
1129 if (abs_expr(&evalc) != OK)
1133 return error("missing comma");
1135 if (expr(exprbuf, &eval, &eattr, NULL) < 0)
1138 if (cursect != M6502 && (siz != SIZB) && (sloc & 1))
1141 dep_block(evalc, siz, eval, eattr, exprbuf);
1147 // Generalized initialization directive
1149 // .init[.siz] [#count,] expression [.size] , ...
1151 // The size suffix on the ".init" directive becomes the default size of the
1152 // objects to deposit. If an item is preceeded with a sharp (immediate) sign
1153 // and an expression, it specifies a repeat count. The value to be deposited
1154 // may be followed by a size suffix, which overrides the default size.
1156 int d_init(WORD def_siz)
1163 if ((scattr & SBSS) != 0)
1164 return error(".init not permitted in BSS or ABS");
1167 return error("directive forbidden in gpu/dsp mode");
1171 // Get repeat count (defaults to 1)
1176 if (abs_expr(&count) != OK)
1180 return error(comma_error);
1185 // Evaluate expression to deposit
1186 if (expr(exprbuf, &eval, &eattr, NULL) < 0)
1189 switch ((int)*tok++)
1190 { // Determine size of object to deposit
1191 case DOTB: siz = SIZB; break;
1192 case DOTW: siz = SIZB; break;
1193 case DOTL: siz = SIZL; break;
1200 dep_block(count, siz, eval, eattr, exprbuf);
1210 return error(comma_error);
1217 // Deposit 'count' values of size 'siz' in the current (non-BSS) segment
1219 int dep_block(VALUE count, WORD siz, VALUE eval, WORD eattr, TOKEN * exprbuf)
1224 tdb = (WORD)(eattr & TDB);
1225 defined = (WORD)(eattr & DEFINED);
1229 if ((challoc - ch_size) < 4)
1237 AddFixup(FU_BYTE | FU_SEXT, sloc, exprbuf);
1243 return error("non-absolute byte value");
1245 if (eval + 0x100 >= 0x200)
1246 return error(range_error);
1256 AddFixup(FU_WORD | FU_SEXT, sloc, exprbuf);
1262 MarkRelocatable(cursect, sloc, tdb, MWORD, NULL);
1264 if (eval + 0x10000 >= 0x20000)
1265 return error(range_error);
1267 // Deposit 68000 or 6502 (byte-reversed) word
1268 if (cursect != M6502)
1278 return error(in_6502mode);
1282 AddFixup(FU_LONG, sloc, exprbuf);
1288 MarkRelocatable(cursect, sloc, tdb, MLONG, NULL);
1302 // .comm symbol, size
1311 return error(in_6502mode);
1314 return error("missing symbol");
1319 if (*p == '.') // Cannot .comm a local symbol
1320 return error(locgl_error);
1322 if ((sym = lookup(p, LABEL, 0)) == NULL)
1323 sym = NewSymbol(p, LABEL, 0);
1326 if (sym->sattr & DEFINED)
1327 return error(".comm symbol already defined");
1330 sym->sattr = GLOBAL | COMMON | BSS;
1333 return error(comma_error);
1335 if (abs_expr(&eval) != OK) // Parse size of common region
1338 sym->svalue = eval; // Install common symbol's size
1345 // .list - Turn listing on
1357 // .nlist - Turn listing off
1369 // .68000 - Back to 68000 TEXT segment
1374 // Switching from gpu/dsp sections should reset any ORG'd Address
1378 SwitchSection(TEXT);
1384 // .gpu - Switch to GPU assembler
1388 if ((cursect != TEXT) && (cursect != DATA))
1390 error(".gpu can only be used in the TEXT or DATA segments");
1394 // If previous section was dsp or 68000 then we need to reset ORG'd Addresses
1397 //printf("Resetting ORG...\n");
1401 //else printf("NOT resetting ORG!\n");
1403 rgpu = 1; // Set GPU assembly
1404 rdsp = 0; // Unset DSP assembly
1405 regbank = BANK_N; // Set no default register bank
1411 // .dsp - Switch to DSP assembler
1415 if ((cursect != TEXT) && (cursect != DATA))
1417 error(".dsp can only be used in the TEXT or DATA segments");
1421 // If previous section was gpu or 68000 then we need to reset ORG'd Addresses
1428 rdsp = 1; // Set DSP assembly
1429 rgpu = 0; // Unset GPU assembly
1430 regbank = BANK_N; // Set no default register bank
1436 // .cargs [#offset], symbol[.size], ...
1438 // Lists of registers may also be mentioned; they just take up space. Good for
1439 // "documentation" purposes:
1441 // .cargs a6, .arg1, .arg2, .arg3...
1443 // Symbols thus created are ABS and EQUATED.
1447 VALUE eval = 4; // Default to 4 if no offset specified (to account for
1456 return error("directive forbidden in gpu/dsp mode");
1462 if (abs_expr(&eval) != OK)
1465 // Eat the comma, if it's there
1476 // Set env to either local (dot prefixed) or global scope
1477 env = (*p == '.' ? curenv : 0);
1478 symbol = lookup(p, LABEL, env);
1482 symbol = NewSymbol(p, LABEL, env);
1485 else if (symbol->sattr & DEFINED)
1486 return errors("multiply-defined label '%s'", p);
1488 // Put symbol in "order of definition" list
1489 AddToSymbolDeclarationList(symbol);
1491 symbol->sattr |= (ABS | DEFINED | EQUATED);
1492 symbol->svalue = eval;
1495 // What this does is eat any dot suffixes attached to a symbol. If
1496 // it's a .L, it adds 4 to eval; if it's .W or .B, it adds 2. If
1497 // there is no dot suffix, it assumes a size of 2.
1509 else if (*tok >= KW_D0 && *tok <= KW_A7)
1511 if (reglist(&rlist) < 0)
1514 for(i=0; i<16; i++, rlist>>=1)
1537 return error(".cargs syntax");
1541 // Eat commas in between each argument, if they exist
1549 // .cstruct [#offset], symbol[.size], ...
1551 // Lists of registers may also be mentioned; they just take up space. Good for
1552 // "documentation" purposes:
1554 // .cstruct a6, .arg1, .arg2, .arg3...
1556 // Symbols thus created are ABS and EQUATED. Note that this is for
1557 // compatibility with VBCC and the Remover's library. Thanks to GroovyBee for
1562 VALUE eval = 0; // Default, if no offset specified, is zero
1570 return error("directive forbidden in gpu/dsp mode");
1576 if (abs_expr(&eval) != OK)
1579 // Eat the comma, if it's there
1588 symbolName = string[tok[1]];
1590 // Set env to either local (dot prefixed) or global scope
1591 env = (symbolName[0] == '.' ? curenv : 0);
1592 symbol = lookup(symbolName, LABEL, env);
1594 // If the symbol wasn't found, then define it. Otherwise, throw an
1598 symbol = NewSymbol(symbolName, LABEL, env);
1601 else if (symbol->sattr & DEFINED)
1602 return errors("multiply-defined label '%s'", symbolName);
1604 // Put symbol in "order of definition" list
1605 AddToSymbolDeclarationList(symbol);
1609 // Adjust label start address if it's a word or a long, as a byte
1610 // label might have left us on an odd address.
1615 eval += eval & 0x01;
1618 symbol->sattr |= (ABS | DEFINED | EQUATED);
1619 symbol->svalue = eval;
1621 // Check for dot suffixes and adjust space accordingly (longs and
1622 // words on an odd boundary get bumped to the next word aligned
1623 // address). If no suffix, then throw an error.
1636 return error("Symbol missing dot suffix in .cstruct construct");
1641 else if (*tok >= KW_D0 && *tok <= KW_A7)
1643 if (reglist(&rlist) < 0)
1646 for(i=0; i<16; i++, rlist>>=1)
1669 return error(".cstruct syntax");
1673 // Eat commas in between each argument, if they exist
1681 // Undefine a macro - .undefmac macname [, macname...]
1683 int undmac1(char * p)
1685 SYM * symbol = lookup(p, MACRO, 0);
1687 // If the macro symbol exists, cause it to disappear
1689 symbol->stype = (BYTE)SY_UNDEF;
1704 warn("JPAD directive is deprecated/non-functional");
1711 warn("NOJPAD directive is deprecated/non-functional");
1718 return error("What the hell? Do you think we adhere to the Goof standard?");
1723 // .opt - turn a specific (or all) optimisation on or off
1732 char * tmpstr = string[*tok++];
1734 if (ParseOptimization(tmpstr) != OK)
1737 sprintf(temperr, "unknown optimization flag '%s'", tmpstr);
1738 return error(temperr);
1742 return error(".opt directive needs every switch enclosed inside quotation marks");