summaryrefslogtreecommitdiffstats
path: root/include/opcode/moxie.h
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2009-06-11 11:27:57 +0000
committerAnthony Green <green@moxielogic.com>2009-06-11 11:27:57 +0000
commit297abffd6721a322f719a4dbf9c7a94610cb1e84 (patch)
tree7d4f4ae9d2986211f3b78e26b17084e3536d7fc0 /include/opcode/moxie.h
parent070a99e8aa690bcb7431c43dd84f276fc90462bc (diff)
downloadcygnal-297abffd6721a322f719a4dbf9c7a94610cb1e84.tar.gz
cygnal-297abffd6721a322f719a4dbf9c7a94610cb1e84.tar.bz2
cygnal-297abffd6721a322f719a4dbf9c7a94610cb1e84.zip
Add PC-relative branch instructions to moxie port.
Diffstat (limited to 'include/opcode/moxie.h')
-rw-r--r--include/opcode/moxie.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/opcode/moxie.h b/include/opcode/moxie.h
index 0035f5f75..e2bc374f0 100644
--- a/include/opcode/moxie.h
+++ b/include/opcode/moxie.h
@@ -38,7 +38,8 @@
Form 3 instructions also come in different flavors:
- Some have no arguments (MOXIE_F3_NARG). */
+ Some have no arguments (MOXIE_F3_NARG)
+ Some have a 10-bit PC relative operand (MOXIE_F3_PCREL). */
#define MOXIE_F1_NARG 0x100
#define MOXIE_F1_A 0x101
@@ -56,7 +57,8 @@
#define MOXIE_F2_NARG 0x200
#define MOXIE_F2_A8V 0x201
-#define MOXIE_F3_NARG 0x300
+#define MOXIE_F3_NARG 0x300
+#define MOXIE_F3_PCREL 0x301
typedef struct moxie_opc_info_t
{
@@ -67,4 +69,4 @@ typedef struct moxie_opc_info_t
extern const moxie_opc_info_t moxie_form1_opc_info[64];
extern const moxie_opc_info_t moxie_form2_opc_info[4];
-extern const moxie_opc_info_t moxie_form3_opc_info[4];
+extern const moxie_opc_info_t moxie_form3_opc_info[16];