Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct instr { ut8 nums_ops, ut8 is_FD}
- // Designated Initializers https://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html
- struct instr[0x100] = {
- [0x80] = {2,0}, [0x81] = {3,0}, // Add byte 2 operand; Add byte 3 operand
- [0xA0] = {2,0}, [0xA1] = {3,0}, // Add word 2 operand; Add word 3 operand
- [0xC0] = {2,0}, [0xC1] = {3,0}, // Add long 2 operand; Add long 3 operand
- [0x40] = {2,1}, [0x41] = {3,1}, // Add F_floating 2 operand; Add F_floating 3 operand
- // is_FD is set to 1 because we have opcode
- // 40FD ADDG2 Add G_floating 2 operand
- // 41FD ADDG3 Add G_floating 3 operand
- };
- 80 ADDB2 Add byte 2 operand
- 81 ADDB3 Add byte 3 operand
- A0 ADDW2 Add word 2 operand
- A1 ADDW3 Add word 3 operand
- C0 ADDL2 Add long 2 operand
- C1 ADDL3 Add long 3 operand
- 40 ADDF2 Add F_floating 2 operand
- 41 ADDF3 Add F_floating 3 operand
- 60 ADDD2 Add D_floating 2 operand
- 61 ADDD3 Add D_floating 3 operand
- 40FD ADDG2 Add G_floating 2 operand
- 41FD ADDG3 Add G_floating 3 operand
- 60FD ADDH2 Add H_floating 2 operand
- 61FD ADDH3 Add H_floating 3 operand
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement