aboutsummaryrefslogtreecommitdiff
path: root/sim/h8300/sim-main.h
diff options
context:
space:
mode:
authorYoshinori Sato <ysato@users.sourceforge.jp>2021-05-21 22:40:04 +0900
committerYoshinori Sato <ysato@users.sourceforge.jp>2021-05-28 21:14:24 +0900
commit0ef4c3f83b044a9ed4b49f4ebc9d8480ca9aa4fe (patch)
tree661d91ebb556bb7ab3f8a36c3e97bec72dbb9ffd /sim/h8300/sim-main.h
parent3633d4fb4469f5bc4e6e1593b65c7fc93d3805bb (diff)
downloadfsf-binutils-gdb-0ef4c3f83b044a9ed4b49f4ebc9d8480ca9aa4fe.zip
fsf-binutils-gdb-0ef4c3f83b044a9ed4b49f4ebc9d8480ca9aa4fe.tar.gz
fsf-binutils-gdb-0ef4c3f83b044a9ed4b49f4ebc9d8480ca9aa4fe.tar.bz2
sim: h8300 Fixed different behavior in preinc/predec.
* sim-main.h (h8_typecodes): Add operand type OP_REG_DEC, OP_REG_INC. * compile.c (decode): Rewrite oprand type for specific case. (fetch_1): Add handling OP_REG_DEC and OP_REG_INC. (step_once): Fix operand fetch order.
Diffstat (limited to 'sim/h8300/sim-main.h')
-rw-r--r--sim/h8300/sim-main.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sim/h8300/sim-main.h b/sim/h8300/sim-main.h
index a0aa9ef..f27ba68 100644
--- a/sim/h8300/sim-main.h
+++ b/sim/h8300/sim-main.h
@@ -82,7 +82,9 @@ enum h8_typecodes {
/* FIXME: memory indirect? */
OP_INDEXB, /* Byte index mode */
OP_INDEXW, /* Word index mode */
- OP_INDEXL /* Long index mode */
+ OP_INDEXL, /* Long index mode */
+ OP_REG_DEC, /* Register direct. affect address decrement. */
+ OP_REG_INC, /* Register direct. affect address increment. */
};
#include "sim-basics.h"