another comment */
CONST char comment_chars[] = "#/";
-/* These chars only start a comment at the beginning of a line. */
+/* These chars only start a comment at the beginning of a line. */
CONST char line_comment_chars[] = "#/";
CONST char line_separator_chars[] = ";";
{ 0, 0, 0 },
};
-
static void
init_defaults ()
{
insn_hash = hash_new ();
if (insn_hash == NULL)
as_fatal ("Virtual memory exhausted");
-
+
for (i = 0; i < pdp11_num_opcodes; i++)
hash_insert (insn_hash, pdp11_opcodes[i].name, (PTR)(pdp11_opcodes + i));
for (i = 0; i < pdp11_num_aliases; i++)
break;
default:
BAD_CASE (nbytes);
- }
+ }
}
/* Fix up some data or instructions after we find out the value of a symbol
that they reference. */
-int /* Knows about order of bytes in address. */
+int /* Knows about order of bytes in address. */
md_apply_fix (fixP, value)
fixS *fixP;
valueT *value;
long
md_chars_to_number (con, nbytes)
- unsigned char con[]; /* Low order byte 1st. */
- int nbytes; /* Number of bytes in the input. */
+ unsigned char con[]; /* Low order byte 1st. */
+ int nbytes; /* Number of bytes in the input. */
{
/* On a PDP-11, 0x1234 is stored as "\x12\x34", and
* 0x12345678 is stored as "\x56\x78\x12\x34". It's
default:
BAD_CASE (nbytes);
return 0;
- }
+ }
}
\f
static char *
break;
case '#': /* immediate */
- case '$':
+ case '$':
str = parse_expression (str + 1, operand);
if (operand->error)
return str;
insn.reloc = op1.reloc;
}
break;
-
+
default:
BAD_CASE (op->type);
}
{
char *to = NULL;
-
+
if (err)
{
as_bad (err);
pdp11_extension[PDP11_MFPT] = yes;
else if (strncmp (arg, "mproc", 5) == 0 || /* multiprocessor insns: */
strncmp (arg, "multiproc", 9) == 0 ) /* TSTSET, WRTLCK */
- pdp11_extension[PDP11_MPROC] = yes;
+ pdp11_extension[PDP11_MPROC] = yes;
else if (strcmp (arg, "mxps") == 0) /* move from/to proc status */
pdp11_extension[PDP11_MXPS] = yes;
else if (strcmp (arg, "pic") == 0) /* position-independent code */
strcmp (arg, "94") == 0)
return set_cpu_model ("j11") && /* J11 */
set_option ("fpp"); /* All J11 machines come */
- /* with FPP installed. */
+ /* with FPP installed. */
else
return 0;
}
CONST char *pattern;
int opt;
CONST char *description;
-} options;
+} options;
static struct options extension_opts[] =
{
{ "PDP-11 instruction set extentions",
extension_opts,
sizeof extension_opts / sizeof extension_opts[0] },
- { "PDP-11 CPU model options",
+ { "PDP-11 CPU model options",
cpu_opts,
sizeof cpu_opts / sizeof cpu_opts[0] },
- { "PDP-11 machine model options",
+ { "PDP-11 machine model options",
model_opts,
sizeof model_opts / sizeof model_opts[0] },
};