diff options
author | Christian Groessler <chris@groessler.org> | 2020-08-04 22:29:15 +0200 |
---|---|---|
committer | Christian Groessler <chris@groessler.org> | 2020-08-04 22:31:42 +0200 |
commit | 563a322515e1fd03ee93c74e7144b231a4f63281 (patch) | |
tree | 28cea54f520bf0eb9b7e04976c73ab7ca913956a /opcodes/z8kgen.c | |
parent | 97916bfedfd8a1577028f850368fdc0f2aca7653 (diff) | |
download | gdb-563a322515e1fd03ee93c74e7144b231a4f63281.zip gdb-563a322515e1fd03ee93c74e7144b231a4f63281.tar.gz gdb-563a322515e1fd03ee93c74e7144b231a4f63281.tar.bz2 |
Z8k: fix sout/soudb opcodes with direct address
Problem found by Tadashi G. Takaoka.
2020-08-04 Christian Groessler <chris@groessler.org>
Tadashi G. Takaoka <tadashi.g.takaoka@gmail.com>
* z8kgen.c (opt): Fix "sout imm16,rs" and "soutb imm16,rbs"
opcodes (special "out" to absolute address).
* z8k-opc.h: Regenerate.
2020-08-04 Christian Groessler <chris@groessler.org>
* gas/testsuite/gas/z8k/inout.d: Adapt to correct encoding of
"sout/soutb #imm,reg"
Diffstat (limited to 'opcodes/z8kgen.c')
-rw-r--r-- | opcodes/z8kgen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/z8kgen.c b/opcodes/z8kgen.c index b72fcff..e22e6d6 100644 --- a/opcodes/z8kgen.c +++ b/opcodes/z8kgen.c @@ -458,8 +458,8 @@ static struct op opt[] = {"CZS---", 13, 8, "1011 0010 dddd 0001 iiii iiii 0000 imm4", "sllb rbd,imm4", 0}, {"CZS---", 13, 32, "1011 0011 dddd 0101 0000 0000 imm8", "slll rrd,imm8", 0}, - {"------", 12, 16, "0011 1011 ssss 0110 imm16", "sout imm16,rs", 0}, - {"------", 12, 8, "0011 1010 ssss 0110 imm16", "soutb imm16,rbs", 0}, + {"------", 12, 16, "0011 1011 ssss 0111 imm16", "sout imm16,rs", 0}, + {"------", 12, 8, "0011 1010 ssss 0111 imm16", "soutb imm16,rbs", 0}, {"---V--", 21, 16, "0011 1011 ssN0 1011 0000 aaaa dddd 1000", "soutd @ro,@rs,ra", 0}, {"---V--", 21, 8, "0011 1010 ssN0 1011 0000 aaaa dddd 1000", "soutdb @ro,@rs,ra", 0}, {"---V--", 11, 16, "0011 1011 ssN0 1011 0000 aaaa dddd 0000", "sotdr @ro,@rs,ra", 0}, |