Advertisement
Guest User

Untitled

a guest
Apr 17th, 2022
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. $ cat opcodes/ppc-opc.c | grep -C 3 -E "define (BF|BFA|BA|BB|BC|BI|BT) "
  2.  
  3. /* The BF field in an X or XL form instruction. */
  4. #define BF BDPA + 1
  5. /* The CRFD field in an X form instruction. */
  6. #define CRFD BF
  7. /* The CRD field in an XL form instruction. */
  8. #define CRD BF
  9. { 0x7, 23, NULL, NULL, PPC_OPERAND_CR_REG },
  10.  
  11. /* The BFA field in an X or XL form instruction. */
  12. #define BFA OBF + 1
  13. { 0x7, 18, NULL, NULL, PPC_OPERAND_CR_REG },
  14.  
  15. /* The BA field in an XL form instruction. */
  16. #define BA UNUSED + 1
  17. #define BI BA
  18. #define BI_MASK (0x1f << 16)
  19. { 0x1f, 16, NULL, NULL, PPC_OPERAND_CR_BIT },
  20.  
  21. /* The BB field in an XL form instruction. */
  22. #define BB BTAB + 1
  23. #define BB_MASK (0x1f << 11)
  24. { 0x1f, 11, NULL, NULL, PPC_OPERAND_CR_BIT },
  25.  
  26. /* The CRB field in an X form instruction. */
  27. #define BC CRB /* ghostmansd: custom mapping */
  28. #define CRB CR + 1
  29. /* The MB field in an M form instruction. */
  30. #define MB CRB
  31. #define MB_MASK (0x1f << 6)
  32. { 0x1f, 6, NULL, NULL, 0 },
  33.  
  34. /* The BT field in an X or XL form instruction. */
  35. #define BT BH + 1
  36. { 0x1f, 21, NULL, NULL, PPC_OPERAND_CR_BIT },
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement