oooo - form 3 opcode number
vvvvvvvvvv - 10-bit immediate value. */
-/* Note that currently two opcodes are reserved as bad, so that all
- instructions starting with 0x00 and 0xff fault. */
-
-const moxie_opc_info_t moxie_form1_opc_info[64] =
+const moxie_opc_info_t moxie_form1_opc_info[128] =
{
- { 0x00, MOXIE_F1_NARG, "bad" }, // Reserved as bad.
+ { 0x00, MOXIE_BAD, "bad" }, // Reserved as bad.
{ 0x01, MOXIE_F1_A4, "ldi.l" },
{ 0x02, MOXIE_F1_AB, "mov" },
{ 0x03, MOXIE_F1_M, "jsra" },
{ 0x0d, MOXIE_F1_AiB4, "sto.l" },
{ 0x0e, MOXIE_F1_AB, "cmp" },
{ 0x0f, MOXIE_F1_NARG, "nop" },
- { 0x10, MOXIE_F1_NARG, "bad" },
- { 0x11, MOXIE_F1_NARG, "bad" },
- { 0x12, MOXIE_F1_NARG, "bad" },
- { 0x13, MOXIE_F1_NARG, "bad" },
- { 0x14, MOXIE_F1_NARG, "bad" },
- { 0x15, MOXIE_F1_NARG, "bad" },
- { 0x16, MOXIE_F1_NARG, "bad" },
- { 0x17, MOXIE_F1_NARG, "bad" },
- { 0x18, MOXIE_F1_NARG, "bad" },
+ { 0x10, MOXIE_BAD, "bad" },
+ { 0x11, MOXIE_BAD, "bad" },
+ { 0x12, MOXIE_BAD, "bad" },
+ { 0x13, MOXIE_BAD, "bad" },
+ { 0x14, MOXIE_BAD, "bad" },
+ { 0x15, MOXIE_BAD, "bad" },
+ { 0x16, MOXIE_BAD, "bad" },
+ { 0x17, MOXIE_BAD, "bad" },
+ { 0x18, MOXIE_BAD, "bad" },
{ 0x19, MOXIE_F1_A, "jsr" },
{ 0x1a, MOXIE_F1_M, "jmpa" },
{ 0x1b, MOXIE_F1_A4, "ldi.b" },
{ 0x37, MOXIE_F1_AiB4, "sto.b" },
{ 0x38, MOXIE_F1_ABi4, "ldo.s" },
{ 0x39, MOXIE_F1_AiB4, "sto.s" },
- { 0x3a, MOXIE_F1_NARG, "bad" },
- { 0x3b, MOXIE_F1_NARG, "bad" },
- { 0x3c, MOXIE_F1_NARG, "bad" },
- { 0x3d, MOXIE_F1_NARG, "bad" },
- { 0x3e, MOXIE_F1_NARG, "bad" },
- { 0x3f, MOXIE_F1_NARG, "bad" }
+ { 0x3a, MOXIE_BAD, "bad" },
+ { 0x3b, MOXIE_BAD, "bad" },
+ { 0x3c, MOXIE_BAD, "bad" },
+ { 0x3d, MOXIE_BAD, "bad" },
+ { 0x3e, MOXIE_BAD, "bad" },
+ { 0x3f, MOXIE_BAD, "bad" },
+ { 0x40, MOXIE_BAD, "bad" },
+ { 0x41, MOXIE_BAD, "bad" },
+ { 0x42, MOXIE_BAD, "bad" },
+ { 0x43, MOXIE_BAD, "bad" },
+ { 0x44, MOXIE_BAD, "bad" },
+ { 0x45, MOXIE_BAD, "bad" },
+ { 0x46, MOXIE_BAD, "bad" },
+ { 0x47, MOXIE_BAD, "bad" },
+ { 0x48, MOXIE_BAD, "bad" },
+ { 0x49, MOXIE_BAD, "bad" },
+ { 0x4a, MOXIE_BAD, "bad" },
+ { 0x4b, MOXIE_BAD, "bad" },
+ { 0x4c, MOXIE_BAD, "bad" },
+ { 0x4d, MOXIE_BAD, "bad" },
+ { 0x4e, MOXIE_BAD, "bad" },
+ { 0x4f, MOXIE_BAD, "bad" },
+ { 0x50, MOXIE_BAD, "bad" },
+ { 0x51, MOXIE_BAD, "bad" },
+ { 0x52, MOXIE_BAD, "bad" },
+ { 0x53, MOXIE_BAD, "bad" },
+ { 0x54, MOXIE_BAD, "bad" },
+ { 0x55, MOXIE_BAD, "bad" },
+ { 0x56, MOXIE_BAD, "bad" },
+ { 0x57, MOXIE_BAD, "bad" },
+ { 0x58, MOXIE_BAD, "bad" },
+ { 0x59, MOXIE_BAD, "bad" },
+ { 0x5a, MOXIE_BAD, "bad" },
+ { 0x5b, MOXIE_BAD, "bad" },
+ { 0x5c, MOXIE_BAD, "bad" },
+ { 0x5d, MOXIE_BAD, "bad" },
+ { 0x5e, MOXIE_BAD, "bad" },
+ { 0x5f, MOXIE_BAD, "bad" },
+ { 0x60, MOXIE_BAD, "bad" },
+ { 0x61, MOXIE_BAD, "bad" },
+ { 0x62, MOXIE_BAD, "bad" },
+ { 0x63, MOXIE_BAD, "bad" },
+ { 0x64, MOXIE_BAD, "bad" },
+ { 0x65, MOXIE_BAD, "bad" },
+ { 0x66, MOXIE_BAD, "bad" },
+ { 0x67, MOXIE_BAD, "bad" },
+ { 0x68, MOXIE_BAD, "bad" },
+ { 0x69, MOXIE_BAD, "bad" },
+ { 0x6a, MOXIE_BAD, "bad" },
+ { 0x6b, MOXIE_BAD, "bad" },
+ { 0x6c, MOXIE_BAD, "bad" },
+ { 0x6d, MOXIE_BAD, "bad" },
+ { 0x6e, MOXIE_BAD, "bad" },
+ { 0x6f, MOXIE_BAD, "bad" },
+ { 0x70, MOXIE_BAD, "bad" },
+ { 0x71, MOXIE_BAD, "bad" },
+ { 0x72, MOXIE_BAD, "bad" },
+ { 0x73, MOXIE_BAD, "bad" },
+ { 0x74, MOXIE_BAD, "bad" },
+ { 0x75, MOXIE_BAD, "bad" },
+ { 0x76, MOXIE_BAD, "bad" },
+ { 0x77, MOXIE_BAD, "bad" },
+ { 0x78, MOXIE_BAD, "bad" },
+ { 0x79, MOXIE_BAD, "bad" },
+ { 0x7a, MOXIE_BAD, "bad" },
+ { 0x7b, MOXIE_BAD, "bad" },
+ { 0x7c, MOXIE_BAD, "bad" },
+ { 0x7d, MOXIE_BAD, "bad" },
+ { 0x7e, MOXIE_BAD, "bad" },
+ { 0x7f, MOXIE_BAD, "bad" }
};
const moxie_opc_info_t moxie_form2_opc_info[4] =
{ 0x07, MOXIE_F3_PCREL,"ble" },
{ 0x08, MOXIE_F3_PCREL,"bgeu" },
{ 0x09, MOXIE_F3_PCREL,"bleu" },
- { 0x0a, MOXIE_F3_NARG, "bad" },
- { 0x0b, MOXIE_F3_NARG, "bad" },
- { 0x0c, MOXIE_F3_NARG, "bad" },
- { 0x0d, MOXIE_F3_NARG, "bad" },
- { 0x0e, MOXIE_F3_NARG, "bad" },
- { 0x0f, MOXIE_F3_NARG, "bad" } // Reserved as bad.
+ { 0x0a, MOXIE_BAD, "bad" },
+ { 0x0b, MOXIE_BAD, "bad" },
+ { 0x0c, MOXIE_BAD, "bad" },
+ { 0x0d, MOXIE_BAD, "bad" },
+ { 0x0e, MOXIE_BAD, "bad" },
+ { 0x0f, MOXIE_BAD, "bad" } // Reserved as bad.
};
-
-