aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-11-25 18:24:14 +0000
committerJeff Law <law@redhat.com>1996-11-25 18:24:14 +0000
commitf98905f13d5196c415b823750f66ccaefe2a7a82 (patch)
tree84589ec2d792d3896dd6e2bf0554743af1405f5c
parent11cd057a4155e891a9bbb3ee3f87ec6ae71e67f0 (diff)
downloadbinutils-f98905f13d5196c415b823750f66ccaefe2a7a82.zip
binutils-f98905f13d5196c415b823750f66ccaefe2a7a82.tar.gz
binutils-f98905f13d5196c415b823750f66ccaefe2a7a82.tar.bz2
* config/tc-mn10300.c (address_registers): Use '%' prefix for regs.
(data_registers, other_registers, md_assemble): Likewise.
-rw-r--r--gas/ChangeLog3
-rw-r--r--gas/config/tc-mn10300.c32
2 files changed, 19 insertions, 16 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index b7d515b..2a1f36b 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,8 @@
Mon Nov 25 08:49:36 1996 Jeffrey A Law (law@cygnus.com)
+ * config/tc-mn10300.c (address_registers): Use '%' prefix for regs.
+ (data_registers, other_registers, md_assemble): Likewise.
+
* config/tc-mn10300.c (md_assemble): Correctly determine the
correct location and type for each relocation.
(md_pcrel_from): Simplify.
diff --git a/gas/config/tc-mn10300.c b/gas/config/tc-mn10300.c
index bc6a746..efc806e 100644
--- a/gas/config/tc-mn10300.c
+++ b/gas/config/tc-mn10300.c
@@ -96,27 +96,27 @@ static struct hash_control *mn10300_hash;
/* This table is sorted. Suitable for searching by a binary search. */
static const struct reg_name data_registers[] =
{
- { "d0", 0 },
- { "d1", 1 },
- { "d2", 2 },
- { "d3", 3 },
+ { "%d0", 0 },
+ { "%d1", 1 },
+ { "%d2", 2 },
+ { "%d3", 3 },
};
#define DATA_REG_NAME_CNT (sizeof(data_registers) / sizeof(struct reg_name))
static const struct reg_name address_registers[] =
{
- { "a0", 0 },
- { "a1", 1 },
- { "a2", 2 },
- { "a3", 3 },
+ { "%a0", 0 },
+ { "%a1", 1 },
+ { "%a2", 2 },
+ { "%a3", 3 },
};
#define ADDRESS_REG_NAME_CNT (sizeof(address_registers) / sizeof(struct reg_name))
static const struct reg_name other_registers[] =
{
- { "mdr", 0 },
- { "psw", 0 },
- { "sp", 0 },
+ { "%mdr", 0 },
+ { "%psw", 0 },
+ { "%sp", 0 },
};
#define OTHER_REG_NAME_CNT (sizeof(other_registers) / sizeof(struct reg_name))
@@ -584,27 +584,27 @@ md_assemble (str)
start = input_line_pointer;
c = get_symbol_end ();
- if (strcmp (start, "d2") == 0)
+ if (strcmp (start, "%d2") == 0)
{
value |= 0x80;
*input_line_pointer = c;
}
- else if (strcmp (start, "d3") == 0)
+ else if (strcmp (start, "%d3") == 0)
{
value |= 0x40;
*input_line_pointer = c;
}
- else if (strcmp (start, "a2") == 0)
+ else if (strcmp (start, "%a2") == 0)
{
value |= 0x20;
*input_line_pointer = c;
}
- else if (strcmp (start, "a3") == 0)
+ else if (strcmp (start, "%a3") == 0)
{
value |= 0x10;
*input_line_pointer = c;
}
- else if (strcmp (start, "other") == 0)
+ else if (strcmp (start, "%other") == 0)
{
value |= 0x08;
*input_line_pointer = c;