Advertisement
Guest User

Untitled

a guest
Nov 25th, 2015
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.05 KB | None | 0 0
  1.  
  2. struct instr { ut8 nums_ops, ut8 is_FD}
  3.  
  4. // Designated Initializers https://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html
  5.  
  6. struct instr[0x100] = {
  7.   [0x80] = {2,0}, [0x81] = {3,0}, // Add byte 2 operand; Add byte 3 operand
  8.   [0xA0] = {2,0}, [0xA1] = {3,0}, // Add word 2 operand; Add word 3 operand
  9.   [0xC0] = {2,0}, [0xC1] = {3,0}, // Add long 2 operand; Add long 3 operand
  10.   [0x40] = {2,1}, [0x41] = {3,1}, // Add F_floating 2 operand; Add F_floating 3 operand
  11.   // is_FD is set to 1 because we have opcode
  12.   // 40FD ADDG2 Add G_floating 2 operand
  13.   // 41FD ADDG3 Add G_floating 3 operand
  14.  };
  15.  
  16. 80 ADDB2 Add byte 2 operand
  17. 81 ADDB3 Add byte 3 operand
  18. A0 ADDW2 Add word 2 operand
  19. A1 ADDW3 Add word 3 operand
  20. C0 ADDL2 Add long 2 operand
  21. C1 ADDL3 Add long 3 operand
  22. 40 ADDF2 Add F_floating 2 operand
  23. 41 ADDF3 Add F_floating 3 operand
  24. 60 ADDD2 Add D_floating 2 operand
  25. 61 ADDD3 Add D_floating 3 operand
  26. 40FD ADDG2 Add G_floating 2 operand
  27. 41FD ADDG3 Add G_floating 3 operand
  28. 60FD ADDH2 Add H_floating 2 operand
  29. 61FD ADDH3 Add H_floating 3 operand
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement