\f
-static int lex_reg_name (uint16_t which, int *reg);
+static bfd_boolean lex_reg_name (uint16_t which, int *reg);
-static int
+static bfd_boolean
lex_constant (long *v)
{
char *end = NULL;
if (lex_reg_name (~0, &dummy))
{
input_line_pointer = p;
- return 0;
+ return false;
}
errno = 0;
if (errno == 0 && end != p)
{
input_line_pointer = end;
- return 1;
+ return true;
}
- return 0;
+ return false;
}
-static int
+static bfd_boolean
lex_match (char x)
{
char *p = input_line_pointer;
if (*p != x)
- return 0;
+ return false;
input_line_pointer++;
- return 1;
+ return true;
}
-static int
+static bfd_boolean
lex_expression (expressionS *exp)
{
char *ilp = input_line_pointer;
expression (exp);
if (exp->X_op != O_absent)
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
/* Immediate operand.
If EXP_O is non-null, then a symbolic expression is permitted,
in which case, EXP_O will be populated with the parsed expression.
*/
-static int
+static bfd_boolean
lex_imm (long *v, expressionS *exp_o)
{
char *ilp = input_line_pointer;
}
*v = exp.X_add_number;
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
/* Short mmediate operand */
-static int
+static bfd_boolean
lex_imm_e4 (long *val)
{
char *ilp = input_line_pointer;
{
if ((*val == -1) || (*val > 0 && *val <= 15))
{
- return 1;
+ return true;
}
}
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
lex_match_string (const char *s)
{
char *p = input_line_pointer;
size_t len = p - input_line_pointer;
if (len != strlen (s))
- return 0;
+ return false;
if (0 == strncasecmp (s, input_line_pointer, len))
{
input_line_pointer = p;
- return 1;
+ return true;
}
- return 0;
+ return false;
}
/* Parse a register name.
On success, REG will be filled with the index of the register which
was successfully scanned.
*/
-static int
+static bfd_boolean
lex_reg_name (uint16_t which, int *reg)
{
char *p = input_line_pointer;
size_t len = p - input_line_pointer;
if (len <= 0)
- return 0;
+ return false;
int i;
for (i = 0; i < S12Z_N_REGISTERS; ++i)
{
input_line_pointer = p;
*reg = i;
- return 1;
+ return true;
}
}
}
- return 0;
+ return false;
}
static int
if (*p != x)
{
as_bad (_("Expecting '%c'"), x);
- return 0;
+ return false;
}
input_line_pointer++;
- return 1;
+ return true;
}
-static int
+static bfd_boolean
lex_opr (uint8_t *buffer, int *n_bytes, expressionS *exp,
bool immediate_ok)
{
if (!immediate_ok)
{
as_bad (_("An immediate value in a source operand is inappropriate"));
- return 0;
+ return false;
}
if (imm > 0)
*xb = imm;
*xb = 0;
*xb |= 0x70;
*n_bytes = 1;
- return 1;
+ return true;
}
else if (lex_reg_name (REG_BIT_Dn, ®))
{
*xb = reg;
*xb |= 0xb8;
*n_bytes = 1;
- return 1;
+ return true;
}
else if (lex_match ('['))
{
}
if (!lex_force_match (']'))
goto fail;
- return 1;
+ return true;
}
else if (lex_match ('('))
{
if (! lex_match (')'))
goto fail;
- return 1;
+ return true;
}
else if (lex_expression (exp))
{
buffer[3] = value;
}
}
- return 1;
+ return true;
}
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
lex_offset (long *val)
{
char *end = NULL;
char *p = input_line_pointer;
if (*p++ != '*')
- return 0;
+ return false;
if (*p != '+' && *p != '-')
- return 0;
+ return false;
bool negative = (*p == '-');
p++;
if (negative)
*val *= -1;
input_line_pointer = end;
- return 1;
+ return true;
}
- return 0;
+ return false;
}
\f
if (*input_line_pointer != '\0')
{
as_bad (_("Garbage at end of instruction"));
- return 0;
+ return false;
}
char *f = s12z_new_insn (insn->page);
number_to_chars_bigendian (f++, insn->opc, 1);
- return 1;
+ return true;
}
return f + 3;
}
-static int
+static bfd_boolean
opr (const struct instruction *insn)
{
uint8_t buffer[4];
emit_opr (f, buffer, n_bytes, &exp);
}
- return 1;
+ return true;
}
- return 0;
+ return false;
}
/* Parse a 15 bit offset, as an expression.
LONG_DISPLACEMENT will be set to true if the offset is wider than 7 bits.
*/
-static int
+static bfd_boolean
lex_15_bit_offset (bool *long_displacement, expressionS *exp)
{
char *ilp = input_line_pointer;
/* If a symbol was parsed we don't know the displacement.
We have to assume it is long, and relax it later if possible. */
*long_displacement = true;
- return 1;
+ return true;
}
}
else
if (val > 0x3FFF || val < -0x4000)
{
as_fatal (_("Offset is outside of 15 bit range"));
- return 0;
+ return false;
}
*long_displacement = (val > 63 || val < -64);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
static void
}
}
-static int
+static bfd_boolean
rel (const struct instruction *insn)
{
bool long_displacement;
expressionS exp;
if (! lex_15_bit_offset (&long_displacement, &exp))
- return 0;
+ return false;
char *f = s12z_new_insn (long_displacement ? 3 : 2);
number_to_chars_bigendian (f++, insn->opc, 1);
emit_15_bit_offset (f, 3, &exp);
- return 1;
+ return true;
}
-static int
+static bfd_boolean
reg_inh (const struct instruction *insn)
{
int reg;
number_to_chars_bigendian (f++, PAGE2_PREBYTE, 1);
number_to_chars_bigendian (f++, insn->opc + reg, 1);
- return 1;
+ return true;
}
- return 0;
+ return false;
}
/* Special case for CLR X and CLR Y */
-static int
+static bfd_boolean
clr_xy (const struct instruction *insn ATTRIBUTE_UNUSED)
{
int reg;
{
char *f = s12z_new_insn (1);
number_to_chars_bigendian (f, 0x9a + reg - REG_X, 1);
- return 1;
+ return true;
}
- return 0;
+ return false;
}
/* Some instructions have a suffix like ".l", ".b", ".w" etc
which indicates the size of the operands. */
-static int
+static bfd_boolean
size_from_suffix (const struct instruction *insn, int idx)
{
const char *dot = strchr (insn->name, '.');
return size;
}
-static int
+static bfd_boolean
mul_reg_reg_reg (const struct instruction *insn)
{
char *ilp = input_line_pointer;
number_to_chars_bigendian (f++, mb, 1);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
mul_reg_reg_imm (const struct instruction *insn)
{
char *ilp = input_line_pointer;
number_to_chars_bigendian (f++, mb, 1);
number_to_chars_bigendian (f++, imm, size);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
mul_reg_reg_opr (const struct instruction *insn)
{
char *ilp = input_line_pointer;
emit_opr (f, buffer, n_bytes, &exp);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
mul_reg_opr_opr (const struct instruction *insn)
{
char *ilp = input_line_pointer;
f = emit_opr (f, buffer1, n_bytes1, &exp1);
f = emit_opr (f, buffer2, n_bytes2, &exp2);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
{
int reg;
if (!lex_reg_name (grp, ®))
- return 0;
+ return false;
*reg_bits |= 0x1u << reg;
lex_reg_list (grp, reg_bits);
}
/* Empty list */
- return 1;
+ return true;
}
-static int
+static bfd_boolean
psh_pull (const struct instruction *insn)
{
uint8_t pb =
char *f = s12z_new_insn (2);
number_to_chars_bigendian (f++, insn->opc, 1);
number_to_chars_bigendian (f++, pb, 1);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
tfr (const struct instruction *insn)
{
int reg1;
number_to_chars_bigendian (f++, insn->opc, 1);
number_to_chars_bigendian (f++, reg1 << 4 | reg2, 1);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
imm8 (const struct instruction *insn)
{
long imm;
if (! lex_imm (&imm, NULL))
- return 0;
+ return false;
if (imm > 127 || imm < -128)
{
as_bad (_("Immediate value %ld is out of range for instruction %s"),
number_to_chars_bigendian (f++, insn->opc, 1);
number_to_chars_bigendian (f++, imm, 1);
- return 1;
+ return true;
}
-static int
+static bfd_boolean
reg_imm (const struct instruction *insn, int allowed_reg)
{
char *ilp = input_line_pointer;
number_to_chars_bigendian (f++, insn->opc + reg, 1);
number_to_chars_bigendian (f++, imm, size);
- return 1;
+ return true;
}
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
regd_imm (const struct instruction *insn)
{
return reg_imm (insn, REG_BIT_Dn);
}
-static int
+static bfd_boolean
regdxy_imm (const struct instruction *insn)
{
return reg_imm (insn, REG_BIT_Dn | REG_BIT_XY);
}
-static int
+static bfd_boolean
regs_imm (const struct instruction *insn)
{
return reg_imm (insn, 0x1U << REG_S);
}
-static int
+static bfd_boolean
trap_imm (const struct instruction *insn ATTRIBUTE_UNUSED)
{
long imm = -1;
(imm >= 0xB0 && imm <= 0xB7))
{
as_bad (_("trap value %ld is not valid"), imm);
- return 0;
+ return false;
}
else
{
char *f = s12z_new_insn (2);
number_to_chars_bigendian (f++, PAGE2_PREBYTE, 1);
number_to_chars_bigendian (f++, imm & 0xFF, 1);
- return 1;
+ return true;
}
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
- return 0;
+ return false;
}
/* Special one byte instruction CMP X, Y */
-static int
+static bfd_boolean
regx_regy (const struct instruction *insn)
{
int reg;
{
char *f = s12z_new_insn (1);
number_to_chars_bigendian (f, insn->opc, 1);
- return 1;
+ return true;
}
}
}
- return 0;
+ return false;
}
/* Special one byte instruction SUB D6, X, Y */
-static int
+static bfd_boolean
regd6_regx_regy (const struct instruction *insn)
{
char *ilp = input_line_pointer;
char *f = s12z_new_insn (1);
number_to_chars_bigendian (f, insn->opc, 1);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
/* Special one byte instruction SUB D6, Y, X */
-static int
+static bfd_boolean
regd6_regy_regx (const struct instruction *insn)
{
char *ilp = input_line_pointer;
char *f = s12z_new_insn (1);
number_to_chars_bigendian (f, insn->opc, 1);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
reg_opr (const struct instruction *insn, int allowed_regs,
bool immediate_ok)
{
emit_opr (f, buffer, n_bytes, &exp);
}
- return 1;
+ return true;
}
}
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
regdxy_opr_dest (const struct instruction *insn)
{
return reg_opr (insn, REG_BIT_Dn | REG_BIT_XY, false);
}
-static int
+static bfd_boolean
regdxy_opr_src (const struct instruction *insn)
{
return reg_opr (insn, REG_BIT_Dn | REG_BIT_XY, true);
}
-static int
+static bfd_boolean
regd_opr (const struct instruction *insn)
{
return reg_opr (insn, REG_BIT_Dn, true);
/* OP0: S; OP1: destination OPR */
-static int
+static bfd_boolean
regs_opr_dest (const struct instruction *insn)
{
return reg_opr (insn, 0x1U << REG_S, false);
}
/* OP0: S; OP1: source OPR */
-static int
+static bfd_boolean
regs_opr_src (const struct instruction *insn)
{
return reg_opr (insn, 0x1U << REG_S, true);
}
-static int
+static bfd_boolean
imm_opr (const struct instruction *insn)
{
char *ilp = input_line_pointer;
emit_opr (f, buffer, n_bytes, &exp1);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
opr_opr (const struct instruction *insn)
{
char *ilp = input_line_pointer;
f = emit_opr (f, buffer1, n_bytes1, &exp1);
f = emit_opr (f, buffer2, n_bytes2, &exp2);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
reg67sxy_opr (const struct instruction *insn)
{
int reg;
if (!lex_reg_name (REG_BIT_XYS | (0x1U << REG_D6) | (0x1U << REG_D7), ®))
- return 0;
+ return false;
if (!lex_match (','))
- return 0;
+ return false;
uint8_t buffer[4];
int n_bytes;
expressionS exp;
if (!lex_opr (buffer, &n_bytes, &exp, false))
- return 0;
+ return false;
char *f = s12z_new_insn (1 + n_bytes);
number_to_chars_bigendian (f++, insn->opc + reg - REG_D6, 1);
emit_opr (f, buffer, n_bytes, &exp);
- return 1;
+ return true;
}
-static int
+static bfd_boolean
rotate (const struct instruction *insn, short dir)
{
uint8_t buffer[4];
number_to_chars_bigendian (f++, sb, 1);
emit_opr (f, buffer, n_bytes, &exp);
- return 1;
+ return true;
}
- return 0;
+ return false;
}
-static int
+static bfd_boolean
rol (const struct instruction *insn)
{
return rotate (insn, 1);
}
-static int
+static bfd_boolean
ror (const struct instruction *insn)
{
return rotate (insn, 0);
left = 1; right = 0;
logical = 0; arithmetic = 1;
*/
-static int
+static bfd_boolean
lex_shift_reg_imm1 (const struct instruction *insn, short type, short dir)
{
/*
number_to_chars_bigendian (f++, sb, 1);
emit_opr (f, buffer, n_bytes, &exp);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
/* Shift instruction with a register operand.
left = 1; right = 0;
logical = 0; arithmetic = 1; */
-static int
+static bfd_boolean
lex_shift_reg (const struct instruction *insn, short type, short dir)
{
int Dd, Ds, Dn;
xb |= Dn;
number_to_chars_bigendian (f++, xb, 1);
- return 1;
+ return true;
}
else if (lex_imm (&imm, NULL))
{
number_to_chars_bigendian (f++, xb, 1);
}
- return 1;
+ return true;
}
fail:
fail_line_pointer = input_line_pointer;
- return 0;
+ return false;
}
static void
}
/* Shift instruction with a OPR operand */
-static int
+static bfd_boolean
shift_two_operand (const struct instruction *insn)
{
uint8_t sb = 0x34;
number_to_chars_bigendian (f++, sb, 1);
emit_opr (f, buffer, n_opr_bytes, &exp);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
/* Shift instruction with a OPR operand */
-static int
+static bfd_boolean
shift_opr_imm (const struct instruction *insn)
{
char *ilp = input_line_pointer;
f = emit_opr (f, buffer2, n_opr_bytes2, &exp2);
}
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
/* Shift instruction with a register operand */
-static int
+static bfd_boolean
shift_reg (const struct instruction *insn)
{
short dir = -1;
impute_shift_dir_and_type (insn, &type, &dir);
if (lex_shift_reg_imm1 (insn, type, dir))
- return 1;
+ return true;
return lex_shift_reg (insn, type, dir);
}
-static int
+static bfd_boolean
bm_regd_imm (const struct instruction *insn)
{
char *ilp = input_line_pointer;
number_to_chars_bigendian (f++, insn->opc, 1);
number_to_chars_bigendian (f++, bm, 1);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
bm_opr_reg (const struct instruction *insn)
{
char *ilp = input_line_pointer;
emit_opr (f, buffer, n_opr_bytes, &exp);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
bm_opr_imm (const struct instruction *insn)
{
char *ilp = input_line_pointer;
number_to_chars_bigendian (f++, bm, 1);
emit_opr (f, buffer, n_opr_bytes, &exp);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
bm_regd_reg (const struct instruction *insn)
{
char *ilp = input_line_pointer;
number_to_chars_bigendian (f++, bm, 1);
number_to_chars_bigendian (f++, xb, 1);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
\f
-static int
+static bfd_boolean
bf_reg_opr_imm (const struct instruction *insn, short ie)
{
char *ilp = input_line_pointer;
emit_opr (f, buffer, n_bytes, &exp);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
bf_opr_reg_imm (const struct instruction *insn, short ie)
{
char *ilp = input_line_pointer;
emit_opr (f, buffer, n_bytes, &exp);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
bf_reg_reg_imm (const struct instruction *insn, short ie)
{
char *ilp = input_line_pointer;
number_to_chars_bigendian (f++, bb, 1);
number_to_chars_bigendian (f++, i1, 1);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
bf_reg_reg_reg (const struct instruction *insn ATTRIBUTE_UNUSED, short ie)
{
char *ilp = input_line_pointer;
number_to_chars_bigendian (f++, 0x08 | Dd, 1);
number_to_chars_bigendian (f++, bb , 1);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
bf_opr_reg_reg (const struct instruction *insn, short ie)
{
char *ilp = input_line_pointer;
emit_opr (f, buffer, n_bytes, &exp);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
bf_reg_opr_reg (const struct instruction *insn, short ie)
{
char *ilp = input_line_pointer;
emit_opr (f, buffer, n_bytes, &exp);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
bfe_reg_reg_reg (const struct instruction *insn)
{
return bf_reg_reg_reg (insn, 0);
}
-static int
+static bfd_boolean
bfi_reg_reg_reg (const struct instruction *insn)
{
return bf_reg_reg_reg (insn, 1);
}
-static int
+static bfd_boolean
bfe_reg_reg_imm (const struct instruction *insn)
{
return bf_reg_reg_imm (insn, 0);
}
-static int
+static bfd_boolean
bfi_reg_reg_imm (const struct instruction *insn)
{
return bf_reg_reg_imm (insn, 1);
}
-static int
+static bfd_boolean
bfe_reg_opr_reg (const struct instruction *insn)
{
return bf_reg_opr_reg (insn, 0);
}
-static int
+static bfd_boolean
bfi_reg_opr_reg (const struct instruction *insn)
{
return bf_reg_opr_reg (insn, 1);
}
-static int
+static bfd_boolean
bfe_opr_reg_reg (const struct instruction *insn)
{
return bf_opr_reg_reg (insn, 0);
}
-static int
+static bfd_boolean
bfi_opr_reg_reg (const struct instruction *insn)
{
return bf_opr_reg_reg (insn, 1);
}
-static int
+static bfd_boolean
bfe_reg_opr_imm (const struct instruction *insn)
{
return bf_reg_opr_imm (insn, 0);
}
-static int
+static bfd_boolean
bfi_reg_opr_imm (const struct instruction *insn)
{
return bf_reg_opr_imm (insn, 1);
}
-static int
+static bfd_boolean
bfe_opr_reg_imm (const struct instruction *insn)
{
return bf_opr_reg_imm (insn, 0);
}
-static int
+static bfd_boolean
bfi_opr_reg_imm (const struct instruction *insn)
{
return bf_opr_reg_imm (insn, 1);
\f
-static int
+static bfd_boolean
tb_reg_rel (const struct instruction *insn)
{
char *ilp = input_line_pointer;
emit_15_bit_offset (f, 4, &exp);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
tb_opr_rel (const struct instruction *insn)
{
char *ilp = input_line_pointer;
emit_15_bit_offset (f, n_bytes + 4, &exp2);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
\f
-static int
+static bfd_boolean
test_br_reg_reg_rel (const struct instruction *insn)
{
char *ilp = input_line_pointer;
emit_15_bit_offset (f, 5, &exp);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
test_br_opr_reg_rel (const struct instruction *insn)
{
char *ilp = input_line_pointer;
emit_15_bit_offset (f, n, &exp2);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
test_br_opr_imm_rel (const struct instruction *insn)
{
char *ilp = input_line_pointer;
emit_15_bit_offset (f, n_bytes + 4, &exp2);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
-static int
+static bfd_boolean
test_br_reg_imm_rel (const struct instruction *insn)
{
char *ilp = input_line_pointer;
emit_15_bit_offset (f, 4, &exp);
- return 1;
+ return true;
fail:
fail_line_pointer = input_line_pointer;
input_line_pointer = ilp;
- return 0;
+ return false;
}
s12z_relax_frag (segT seg ATTRIBUTE_UNUSED, fragS *fragP ATTRIBUTE_UNUSED,
long stretch ATTRIBUTE_UNUSED)
{
- return 0;
+ return false;
}
void
int
md_estimate_size_before_relax (fragS *fragP ATTRIBUTE_UNUSED, asection *segment ATTRIBUTE_UNUSED)
{
- return 0;
+ return false;
}
we need to make sure that the linker relaxation is done
correctly, so in some cases we force the original symbol to be
used. */
-int
+bfd_boolean
tc_s12z_fix_adjustable (fixS *fixP ATTRIBUTE_UNUSED)
{
- return 1;
+ return true;
}
void