aboutsummaryrefslogtreecommitdiff
path: root/gas/config/rl78-parse.y
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-02-04 12:00:58 +0000
committerNick Clifton <nickc@redhat.com>2015-02-04 12:00:58 +0000
commit3101e6373ee4bd78f7efbe21a730a4327b0ca8f6 (patch)
tree409c169018577072a63bed098c83f90ca3f136dd /gas/config/rl78-parse.y
parent518be979d905d8e8708c70149fdb3207aba53aa1 (diff)
downloadbinutils-3101e6373ee4bd78f7efbe21a730a4327b0ca8f6.zip
binutils-3101e6373ee4bd78f7efbe21a730a4327b0ca8f6.tar.gz
binutils-3101e6373ee4bd78f7efbe21a730a4327b0ca8f6.tar.bz2
Fix encoding of "addw ax, [hl]" and "subw ax, [hl]".
* config/rl78-parse.y (addsubw): Fix encoding of [HL] variant of these instructions.
Diffstat (limited to 'gas/config/rl78-parse.y')
-rw-r--r--gas/config/rl78-parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/rl78-parse.y b/gas/config/rl78-parse.y
index d1cf71c..a381973 100644
--- a/gas/config/rl78-parse.y
+++ b/gas/config/rl78-parse.y
@@ -259,7 +259,7 @@ statement :
{ B2 (0x61, 0x09|$1); O1 ($8); }
| addsubw AX ',' opt_es '[' HL ']'
- { B4 (0x61, 0x09|$1, 0, 0); }
+ { B3 (0x61, 0x09|$1, 0); }
| addsubw SP ',' '#' EXPR
{ B1 ($1 ? 0x20 : 0x10); O1 ($5);