Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

ppcopc.cc File Reference

#include "ppcopc.h"

Go to the source code of this file.

Defines

#define TB   (268)
#define UNUSED   (0)
#define BA   (1)
#define BA_MASK   (0x1f << 16)
#define BAT   (2)
#define BB   (3)
#define BB_MASK   (0x1f << 11)
#define BBA   (4)
#define BD   (5)
#define BDA   (6)
#define BDM   (7)
#define BDMA   (8)
#define BDP   (9)
#define BDPA   (10)
#define BF   (11)
#define OBF   (12)
#define BFA   (13)
#define BI   (14)
#define BI_MASK   (0x1f << 16)
#define BO   (15)
#define BO_MASK   (0x1f << 21)
#define BOE   (16)
#define BT   (17)
#define CR   (18)
#define D   (19)
#define DS   (20)
#define FL1   (21)
#define FL2   (22)
#define FLM   (23)
#define FRA   (24)
#define FRA_MASK   (0x1f << 16)
#define FRB   (25)
#define FRB_MASK   (0x1f << 11)
#define FRC   (26)
#define FRC_MASK   (0x1f << 6)
#define FRS   (27)
#define FRT   (FRS)
#define FXM   (28)
#define FXM_MASK   (0xff << 12)
#define L   (29)
#define LEV   (30)
#define LI   (31)
#define LIA   (32)
#define MB   (33)
#define MB_MASK   (0x1f << 6)
#define ME   (34)
#define ME_MASK   (0x1f << 1)
#define MBE   (35)
#define MB6   (37)
#define ME6   (MB6)
#define MB6_MASK   (0x3f << 5)
#define NB   (38)
#define NSI   (39)
#define RA   (40)
#define RA_MASK   (0x1f << 16)
#define RAL   (41)
#define RAM   (42)
#define RAS   (43)
#define RB   (44)
#define RB_MASK   (0x1f << 11)
#define RBS   (45)
#define RS   (46)
#define RT   (RS)
#define RT_MASK   (0x1f << 21)
#define SH   (47)
#define SH_MASK   (0x1f << 11)
#define SH6   (48)
#define SH6_MASK   ((0x1f << 11) | (1 << 1))
#define SI   (49)
#define SISIGNOPT   (50)
#define SPR   (51)
#define SPR_MASK   (0x3ff << 11)
#define SPRBAT   (52)
#define SPRBAT_MASK   (0x3 << 17)
#define SPRG   (53)
#define SPRG_MASK   (0x3 << 16)
#define SR   (54)
#define SV   (55)
#define TBR   (56)
#define TO   (57)
#define TO_MASK   (0x1f << 21)
#define U   (58)
#define UI   (59)
#define OP(x)   (((x) & 0x3f) << 26)
#define OP_MASK   OP (0x3f)
#define OPTO(x, to)   (OP (x) | (((to) & 0x1f) << 21))
#define OPTO_MASK   (OP_MASK | TO_MASK)
#define OPL(x, l)   (OP (x) | (((l) & 1) << 21))
#define OPL_MASK   OPL (0x3f,1)
#define A(op, xop, rc)   (OP (op) | (((xop) & 0x1f) << 1) | ((rc) & 1))
#define A_MASK   A (0x3f, 0x1f, 1)
#define AFRB_MASK   (A_MASK | FRB_MASK)
#define AFRC_MASK   (A_MASK | FRC_MASK)
#define AFRAFRC_MASK   (A_MASK | FRA_MASK | FRC_MASK)
#define B(op, aa, lk)   (OP (op) | (((aa) & 1) << 1) | ((lk) & 1))
#define B_MASK   B (0x3f, 1, 1)
#define BBO(op, bo, aa, lk)   (B ((op), (aa), (lk)) | (((bo) & 0x1f) << 21))
#define BBO_MASK   BBO (0x3f, 0x1f, 1, 1)
#define Y_MASK   (1 << 21)
#define BBOY_MASK   (BBO_MASK &~ Y_MASK)
#define BBOCB(op, bo, cb, aa, lk)   (BBO ((op), (bo), (aa), (lk)) | (((cb) & 0x3) << 16))
#define BBOCB_MASK   BBOCB (0x3f, 0x1f, 0x3, 1, 1)
#define BBOYCB_MASK   (BBOCB_MASK &~ Y_MASK)
#define BBOYBI_MASK   (BBOYCB_MASK | BI_MASK)
#define DRA_MASK   (OP_MASK | RA_MASK)
#define DSO(op, xop)   (OP (op) | ((xop) & 0x3))
#define DS_MASK   DSO (0x3f, 3)
#define M(op, rc)   (OP (op) | ((rc) & 1))
#define M_MASK   M (0x3f, 1)
#define MME(op, me, rc)   (M ((op), (rc)) | (((me) & 0x1f) << 1))
#define MMBME_MASK   (M_MASK | MB_MASK | ME_MASK)
#define MSHME_MASK   (M_MASK | SH_MASK | ME_MASK)
#define MD(op, xop, rc)   (OP (op) | (((xop) & 0x7) << 2) | ((rc) & 1))
#define MD_MASK   MD (0x3f, 0x7, 1)
#define MDMB_MASK   (MD_MASK | MB6_MASK)
#define MDSH_MASK   (MD_MASK | SH6_MASK)
#define MDS(op, xop, rc)   (OP (op) | (((xop) & 0xf) << 1) | ((rc) & 1))
#define MDS_MASK   MDS (0x3f, 0xf, 1)
#define MDSMB_MASK   (MDS_MASK | MB6_MASK)
#define SC(op, sa, lk)   (OP (op) | (((sa) & 1) << 1) | ((lk) & 1))
#define SC_MASK   (OP_MASK | (0x3ff << 16) | (1 << 1) | 1)
#define X(op, xop)   (OP (op) | (((xop) & 0x3ff) << 1))
#define XRC(op, xop, rc)   (X ((op), (xop)) | ((rc) & 1))
#define X_MASK   XRC (0x3f, 0x3ff, 1)
#define XRA_MASK   (X_MASK | RA_MASK)
#define XRB_MASK   (X_MASK | RB_MASK)
#define XRT_MASK   (X_MASK | RT_MASK)
#define XRARB_MASK   (X_MASK | RA_MASK | RB_MASK)
#define XRTRA_MASK   (X_MASK | RT_MASK | RA_MASK)
#define XCMPL(op, xop, l)   (X ((op), (xop)) | (((l) & 1) << 21))
#define XCMP_MASK   (X_MASK | (1 << 22))
#define XCMPL_MASK   (XCMP_MASK | (1 << 21))
#define XTO(op, xop, to)   (X ((op), (xop)) | (((to) & 0x1f) << 21))
#define XTO_MASK   (X_MASK | TO_MASK)
#define XFL(op, xop, rc)   (OP (op) | (((xop) & 0x3ff) << 1) | ((rc) & 1))
#define XFL_MASK   (XFL (0x3f, 0x3ff, 1) | (1 << 25) | (1 << 16))
#define XL(op, xop)   (OP (op) | (((xop) & 0x3ff) << 1))
#define XLLK(op, xop, lk)   (XL ((op), (xop)) | ((lk) & 1))
#define XL_MASK   XLLK (0x3f, 0x3ff, 1)
#define XLO(op, bo, xop, lk)   (XLLK ((op), (xop), (lk)) | (((bo) & 0x1f) << 21))
#define XLO_MASK   (XL_MASK | BO_MASK)
#define XLYLK(op, xop, y, lk)   (XLLK ((op), (xop), (lk)) | (((y) & 1) << 21))
#define XLYLK_MASK   (XL_MASK | Y_MASK)
#define XLOCB(op, bo, cb, xop, lk)   (XLO ((op), (bo), (xop), (lk)) | (((cb) & 3) << 16))
#define XLOCB_MASK   XLOCB (0x3f, 0x1f, 0x3, 0x3ff, 1)
#define XLBB_MASK   (XL_MASK | BB_MASK)
#define XLYBB_MASK   (XLYLK_MASK | BB_MASK)
#define XLBOCBBB_MASK   (XLOCB_MASK | BB_MASK)
#define XLBOBB_MASK   (XL_MASK | BO_MASK | BB_MASK)
#define XLBOBIBB_MASK   (XL_MASK | BO_MASK | BI_MASK | BB_MASK)
#define XO(op, xop, oe, rc)   (OP (op) | (((xop) & 0x1ff) << 1) | (((oe) & 1) << 10) | ((rc) & 1))
#define XO_MASK   XO (0x3f, 0x1ff, 1, 1)
#define XORB_MASK   (XO_MASK | RB_MASK)
#define XS(op, xop, rc)   (OP (op) | (((xop) & 0x1ff) << 2) | ((rc) & 1))
#define XS_MASK   XS (0x3f, 0x1ff, 1)
#define XFXFXM_MASK   (X_MASK | (1 << 20) | (1 << 11))
#define XFXM(op, xop, fxm)   (X ((op), (xop)) | (((fxm) & 0xff) << 12))
#define XSPR(op, xop, spr)   (X ((op), (xop)) | (((spr) & 0x1f) << 16) | (((spr) & 0x3e0) << 6))
#define XSPR_MASK   (X_MASK | SPR_MASK)
#define XSPRBAT_MASK   (XSPR_MASK &~ SPRBAT_MASK)
#define XSPRG_MASK   (XSPR_MASK &~ SPRG_MASK)
#define BODNZF   (0x0)
#define BODNZFP   (0x1)
#define BODZF   (0x2)
#define BODZFP   (0x3)
#define BOF   (0x4)
#define BOFP   (0x5)
#define BODNZT   (0x8)
#define BODNZTP   (0x9)
#define BODZT   (0xa)
#define BODZTP   (0xb)
#define BOT   (0xc)
#define BOTP   (0xd)
#define BODNZ   (0x10)
#define BODNZP   (0x11)
#define BODZ   (0x12)
#define BODZP   (0x13)
#define BOU   (0x14)
#define CBLT   (0)
#define CBGT   (1)
#define CBEQ   (2)
#define CBSO   (3)
#define TOLGT   (0x1)
#define TOLLT   (0x2)
#define TOEQ   (0x4)
#define TOLGE   (0x5)
#define TOLNL   (0x5)
#define TOLLE   (0x6)
#define TOLNG   (0x6)
#define TOGT   (0x8)
#define TOGE   (0xc)
#define TONL   (0xc)
#define TOLT   (0x10)
#define TOLE   (0x14)
#define TONG   (0x14)
#define TONE   (0x18)
#define TOU   (0x1f)
#define PPC   PPC_OPCODE_PPC
#define POWER   PPC_OPCODE_POWER
#define POWER2   PPC_OPCODE_POWER2
#define B32   PPC_OPCODE_32
#define B64   PPC_OPCODE_64
#define M601   PPC_OPCODE_601

Variables

const struct powerpc_operand powerpc_operands []
const struct powerpc_opcode powerpc_opcodes []
const int powerpc_num_opcodes


Define Documentation

#define A op,
xop,
rc   )     (OP (op) | (((xop) & 0x1f) << 1) | ((rc) & 1))
 

Definition at line 605 of file ppcopc.cc.

Referenced by ht_elf32_reloc_entry::ht_elf32_reloc_entry(), ht_analy_sub::init(), AnalyInfoline::init(), AnalyX86Disassembler::init(), AnalyPPCDisassembler::init(), AnalyJavaDisassembler::init(), AnalyILDisassembler::init(), AnalyIA64Disassembler::init(), AnalyAlphaDisassembler::init(), AnalyDisassembler::init(), and ht_elf::relocate_section().

#define A_MASK   A (0x3f, 0x1f, 1)
 

Definition at line 606 of file ppcopc.cc.

#define AFRAFRC_MASK   (A_MASK | FRA_MASK | FRC_MASK)
 

Definition at line 615 of file ppcopc.cc.

#define AFRB_MASK   (A_MASK | FRB_MASK)
 

Definition at line 609 of file ppcopc.cc.

#define AFRC_MASK   (A_MASK | FRC_MASK)
 

Definition at line 612 of file ppcopc.cc.

#define B op,
aa,
lk   )     (OP (op) | (((aa) & 1) << 1) | ((lk) & 1))
 

Definition at line 618 of file ppcopc.cc.

#define B32   PPC_OPCODE_32
 

Definition at line 837 of file ppcopc.cc.

#define B64   PPC_OPCODE_64
 

Definition at line 838 of file ppcopc.cc.

#define B_MASK   B (0x3f, 1, 1)
 

Definition at line 619 of file ppcopc.cc.

#define BA   (1)
 

#define BA_MASK   (0x1f << 16)
 

#define BAT   (2)
 

#define BB   (3)
 

#define BB_MASK   (0x1f << 11)
 

#define BBA   (4)
 

#define BBO op,
bo,
aa,
lk   )     (B ((op), (aa), (lk)) | (((bo) & 0x1f) << 21))
 

Definition at line 622 of file ppcopc.cc.

#define BBO_MASK   BBO (0x3f, 0x1f, 1, 1)
 

Definition at line 623 of file ppcopc.cc.

#define BBOCB op,
bo,
cb,
aa,
lk   )     (BBO ((op), (bo), (aa), (lk)) | (((cb) & 0x3) << 16))
 

Definition at line 633 of file ppcopc.cc.

#define BBOCB_MASK   BBOCB (0x3f, 0x1f, 0x3, 1, 1)
 

Definition at line 634 of file ppcopc.cc.

#define BBOY_MASK   (BBO_MASK &~ Y_MASK)
 

Definition at line 629 of file ppcopc.cc.

#define BBOYBI_MASK   (BBOYCB_MASK | BI_MASK)
 

Definition at line 640 of file ppcopc.cc.

#define BBOYCB_MASK   (BBOCB_MASK &~ Y_MASK)
 

Definition at line 637 of file ppcopc.cc.

#define BD   (5)
 

#define BDA   (6)
 

#define BDM   (7)
 

#define BDMA   (8)
 

#define BDP   (9)
 

#define BDPA   (10)
 

#define BF   (11)
 

#define BFA   (13)
 

#define BI   (14)
 

#define BI_MASK   (0x1f << 16)
 

#define BO   (15)
 

#define BO_MASK   (0x1f << 21)
 

#define BODNZ   (0x10)
 

Definition at line 801 of file ppcopc.cc.

#define BODNZF   (0x0)
 

Definition at line 789 of file ppcopc.cc.

#define BODNZFP   (0x1)
 

Definition at line 790 of file ppcopc.cc.

#define BODNZP   (0x11)
 

Definition at line 802 of file ppcopc.cc.

#define BODNZT   (0x8)
 

Definition at line 795 of file ppcopc.cc.

#define BODNZTP   (0x9)
 

Definition at line 796 of file ppcopc.cc.

#define BODZ   (0x12)
 

Definition at line 803 of file ppcopc.cc.

#define BODZF   (0x2)
 

Definition at line 791 of file ppcopc.cc.

#define BODZFP   (0x3)
 

Definition at line 792 of file ppcopc.cc.

#define BODZP   (0x13)
 

Definition at line 804 of file ppcopc.cc.

#define BODZT   (0xa)
 

Definition at line 797 of file ppcopc.cc.

#define BODZTP   (0xb)
 

Definition at line 798 of file ppcopc.cc.

#define BOE   (16)
 

#define BOF   (0x4)
 

Definition at line 793 of file ppcopc.cc.

#define BOFP   (0x5)
 

Definition at line 794 of file ppcopc.cc.

#define BOT   (0xc)
 

Definition at line 799 of file ppcopc.cc.

#define BOTP   (0xd)
 

Definition at line 800 of file ppcopc.cc.

#define BOU   (0x14)
 

Definition at line 805 of file ppcopc.cc.

#define BT   (17)
 

#define CBEQ   (2)
 

Definition at line 811 of file ppcopc.cc.

#define CBGT   (1)
 

Definition at line 810 of file ppcopc.cc.

#define CBLT   (0)
 

Definition at line 809 of file ppcopc.cc.

#define CBSO   (3)
 

Definition at line 812 of file ppcopc.cc.

#define CR   (18)
 

#define D   (19)
 

Referenced by srt_x86_mkaddr().

#define DRA_MASK   (OP_MASK | RA_MASK)
 

Definition at line 643 of file ppcopc.cc.

#define DS   (20)
 

#define DS_MASK   DSO (0x3f, 3)
 

Definition at line 647 of file ppcopc.cc.

#define DSO op,
xop   )     (OP (op) | ((xop) & 0x3))
 

Definition at line 646 of file ppcopc.cc.

#define FL1   (21)
 

#define FL2   (22)
 

#define FLM   (23)
 

#define FRA   (24)
 

#define FRA_MASK   (0x1f << 16)
 

#define FRB   (25)
 

#define FRB_MASK   (0x1f << 11)
 

#define FRC   (26)
 

#define FRC_MASK   (0x1f << 6)
 

#define FRS   (27)
 

#define FRT   (FRS)
 

#define FXM   (28)
 

#define FXM_MASK   (0xff << 12)
 

#define L   (29)
 

#define LEV   (30)
 

#define LI   (31)
 

#define LIA   (32)
 

#define M op,
rc   )     (OP (op) | ((rc) & 1))
 

Definition at line 650 of file ppcopc.cc.

#define M601   PPC_OPCODE_601
 

Definition at line 839 of file ppcopc.cc.

#define M_MASK   M (0x3f, 1)
 

Definition at line 651 of file ppcopc.cc.

#define MB   (33)
 

#define MB6   (37)
 

#define MB6_MASK   (0x3f << 5)
 

#define MB_MASK   (0x1f << 6)
 

#define MBE   (35)
 

#define MD op,
xop,
rc   )     (OP (op) | (((xop) & 0x7) << 2) | ((rc) & 1))
 

Definition at line 663 of file ppcopc.cc.

#define MD_MASK   MD (0x3f, 0x7, 1)
 

Definition at line 664 of file ppcopc.cc.

#define MDMB_MASK   (MD_MASK | MB6_MASK)
 

Definition at line 667 of file ppcopc.cc.

#define MDS op,
xop,
rc   )     (OP (op) | (((xop) & 0xf) << 1) | ((rc) & 1))
 

Definition at line 673 of file ppcopc.cc.

#define MDS_MASK   MDS (0x3f, 0xf, 1)
 

Definition at line 674 of file ppcopc.cc.

#define MDSH_MASK   (MD_MASK | SH6_MASK)
 

Definition at line 670 of file ppcopc.cc.

#define MDSMB_MASK   (MDS_MASK | MB6_MASK)
 

Definition at line 677 of file ppcopc.cc.

#define ME   (34)
 

#define ME6   (MB6)
 

#define ME_MASK   (0x1f << 1)
 

#define MMBME_MASK   (M_MASK | MB_MASK | ME_MASK)
 

Definition at line 657 of file ppcopc.cc.

#define MME op,
me,
rc   )     (M ((op), (rc)) | (((me) & 0x1f) << 1))
 

Definition at line 654 of file ppcopc.cc.

#define MSHME_MASK   (M_MASK | SH_MASK | ME_MASK)
 

Definition at line 660 of file ppcopc.cc.

#define NB   (38)
 

#define NSI   (39)
 

#define OBF   (12)
 

#define OP  )     (((x) & 0x3f) << 26)
 

Definition at line 589 of file ppcopc.cc.

#define OP_MASK   OP (0x3f)
 

Definition at line 590 of file ppcopc.cc.

#define OPL x,
 )     (OP (x) | (((l) & 1) << 21))
 

Definition at line 601 of file ppcopc.cc.

#define OPL_MASK   OPL (0x3f,1)
 

Definition at line 602 of file ppcopc.cc.

#define OPTO x,
to   )     (OP (x) | (((to) & 0x1f) << 21))
 

Definition at line 595 of file ppcopc.cc.

#define OPTO_MASK   (OP_MASK | TO_MASK)
 

Definition at line 596 of file ppcopc.cc.

#define POWER   PPC_OPCODE_POWER
 

Definition at line 835 of file ppcopc.cc.

#define POWER2   PPC_OPCODE_POWER2
 

Definition at line 836 of file ppcopc.cc.

#define PPC   PPC_OPCODE_PPC
 

Definition at line 834 of file ppcopc.cc.

#define RA   (40)
 

#define RA_MASK   (0x1f << 16)
 

#define RAL   (41)
 

#define RAM   (42)
 

#define RAS   (43)
 

#define RB   (44)
 

#define RB_MASK   (0x1f << 11)
 

#define RBS   (45)
 

#define RS   (46)
 

#define RT   (RS)
 

#define RT_MASK   (0x1f << 21)
 

#define SC op,
sa,
lk   )     (OP (op) | (((sa) & 1) << 1) | ((lk) & 1))
 

Definition at line 680 of file ppcopc.cc.

#define SC_MASK   (OP_MASK | (0x3ff << 16) | (1 << 1) | 1)
 

Definition at line 681 of file ppcopc.cc.

#define SH   (47)
 

#define SH6   (48)
 

#define SH6_MASK   ((0x1f << 11) | (1 << 1))
 

#define SH_MASK   (0x1f << 11)
 

#define SI   (49)
 

#define SISIGNOPT   (50)
 

#define SPR   (51)
 

#define SPR_MASK   (0x3ff << 11)
 

#define SPRBAT   (52)
 

#define SPRBAT_MASK   (0x3 << 17)
 

#define SPRG   (53)
 

#define SPRG_MASK   (0x3 << 16)
 

#define SR   (54)
 

#define SV   (55)
 

#define TB   (268)
 

Definition at line 270 of file ppcopc.cc.

#define TBR   (56)
 

#define TO   (57)
 

#define TO_MASK   (0x1f << 21)
 

#define TOEQ   (0x4)
 

Definition at line 817 of file ppcopc.cc.

#define TOGE   (0xc)
 

Definition at line 823 of file ppcopc.cc.

#define TOGT   (0x8)
 

Definition at line 822 of file ppcopc.cc.

#define TOLE   (0x14)
 

Definition at line 826 of file ppcopc.cc.

#define TOLGE   (0x5)
 

Definition at line 818 of file ppcopc.cc.

#define TOLGT   (0x1)
 

Definition at line 815 of file ppcopc.cc.

#define TOLLE   (0x6)
 

Definition at line 820 of file ppcopc.cc.

#define TOLLT   (0x2)
 

Definition at line 816 of file ppcopc.cc.

#define TOLNG   (0x6)
 

Definition at line 821 of file ppcopc.cc.

#define TOLNL   (0x5)
 

Definition at line 819 of file ppcopc.cc.

#define TOLT   (0x10)
 

Definition at line 825 of file ppcopc.cc.

#define TONE   (0x18)
 

Definition at line 828 of file ppcopc.cc.

#define TONG   (0x14)
 

Definition at line 827 of file ppcopc.cc.

#define TONL   (0xc)
 

Definition at line 824 of file ppcopc.cc.

#define TOU   (0x1f)
 

Definition at line 829 of file ppcopc.cc.

#define U   (58)
 

#define UI   (59)
 

#define UNUSED   (0)
 

#define X op,
xop   )     (OP (op) | (((xop) & 0x3ff) << 1))
 

Definition at line 684 of file ppcopc.cc.

Referenced by ht_listbox::draw(), and sym_int::simplify_reduce_destructive().

#define X_MASK   XRC (0x3f, 0x3ff, 1)
 

Definition at line 690 of file ppcopc.cc.

#define XCMP_MASK   (X_MASK | (1 << 22))
 

Definition at line 711 of file ppcopc.cc.

#define XCMPL op,
xop,
 )     (X ((op), (xop)) | (((l) & 1) << 21))
 

Definition at line 708 of file ppcopc.cc.

#define XCMPL_MASK   (XCMP_MASK | (1 << 21))
 

Definition at line 715 of file ppcopc.cc.

#define XFL op,
xop,
rc   )     (OP (op) | (((xop) & 0x3ff) << 1) | ((rc) & 1))
 

Definition at line 722 of file ppcopc.cc.

#define XFL_MASK   (XFL (0x3f, 0x3ff, 1) | (1 << 25) | (1 << 16))
 

Definition at line 723 of file ppcopc.cc.

#define XFXFXM_MASK   (X_MASK | (1 << 20) | (1 << 11))
 

Definition at line 771 of file ppcopc.cc.

#define XFXM op,
xop,
fxm   )     (X ((op), (xop)) | (((fxm) & 0xff) << 12))
 

Definition at line 774 of file ppcopc.cc.

#define XL op,
xop   )     (OP (op) | (((xop) & 0x3ff) << 1))
 

Definition at line 726 of file ppcopc.cc.

#define XL_MASK   XLLK (0x3f, 0x3ff, 1)
 

Definition at line 732 of file ppcopc.cc.

#define XLBB_MASK   (XL_MASK | BB_MASK)
 

Definition at line 749 of file ppcopc.cc.

#define XLBOBB_MASK   (XL_MASK | BO_MASK | BB_MASK)
 

Definition at line 754 of file ppcopc.cc.

#define XLBOBIBB_MASK   (XL_MASK | BO_MASK | BI_MASK | BB_MASK)
 

Definition at line 757 of file ppcopc.cc.

#define XLBOCBBB_MASK   (XLOCB_MASK | BB_MASK)
 

Definition at line 751 of file ppcopc.cc.

#define XLLK op,
xop,
lk   )     (XL ((op), (xop)) | ((lk) & 1))
 

Definition at line 729 of file ppcopc.cc.

#define XLO op,
bo,
xop,
lk   )     (XLLK ((op), (xop), (lk)) | (((bo) & 0x1f) << 21))
 

Definition at line 735 of file ppcopc.cc.

#define XLO_MASK   (XL_MASK | BO_MASK)
 

Definition at line 736 of file ppcopc.cc.

#define XLOCB op,
bo,
cb,
xop,
lk   )     (XLO ((op), (bo), (xop), (lk)) | (((cb) & 3) << 16))
 

Definition at line 745 of file ppcopc.cc.

#define XLOCB_MASK   XLOCB (0x3f, 0x1f, 0x3, 0x3ff, 1)
 

Definition at line 746 of file ppcopc.cc.

#define XLYBB_MASK   (XLYLK_MASK | BB_MASK)
 

Definition at line 750 of file ppcopc.cc.

#define XLYLK op,
xop,
y,
lk   )     (XLLK ((op), (xop), (lk)) | (((y) & 1) << 21))
 

Definition at line 740 of file ppcopc.cc.

#define XLYLK_MASK   (XL_MASK | Y_MASK)
 

Definition at line 741 of file ppcopc.cc.

#define XO op,
xop,
oe,
rc   )     (OP (op) | (((xop) & 0x1ff) << 1) | (((oe) & 1) << 10) | ((rc) & 1))
 

Definition at line 760 of file ppcopc.cc.

#define XO_MASK   XO (0x3f, 0x1ff, 1, 1)
 

Definition at line 761 of file ppcopc.cc.

#define XORB_MASK   (XO_MASK | RB_MASK)
 

Definition at line 764 of file ppcopc.cc.

#define XRA_MASK   (X_MASK | RA_MASK)
 

Definition at line 693 of file ppcopc.cc.

#define XRARB_MASK   (X_MASK | RA_MASK | RB_MASK)
 

Definition at line 702 of file ppcopc.cc.

#define XRB_MASK   (X_MASK | RB_MASK)
 

Definition at line 696 of file ppcopc.cc.

#define XRC op,
xop,
rc   )     (X ((op), (xop)) | ((rc) & 1))
 

Definition at line 687 of file ppcopc.cc.

#define XRT_MASK   (X_MASK | RT_MASK)
 

Definition at line 699 of file ppcopc.cc.

#define XRTRA_MASK   (X_MASK | RT_MASK | RA_MASK)
 

Definition at line 705 of file ppcopc.cc.

#define XS op,
xop,
rc   )     (OP (op) | (((xop) & 0x1ff) << 2) | ((rc) & 1))
 

Definition at line 767 of file ppcopc.cc.

#define XS_MASK   XS (0x3f, 0x1ff, 1)
 

Definition at line 768 of file ppcopc.cc.

#define XSPR op,
xop,
spr   )     (X ((op), (xop)) | (((spr) & 0x1f) << 16) | (((spr) & 0x3e0) << 6))
 

Definition at line 777 of file ppcopc.cc.

#define XSPR_MASK   (X_MASK | SPR_MASK)
 

Definition at line 778 of file ppcopc.cc.

#define XSPRBAT_MASK   (XSPR_MASK &~ SPRBAT_MASK)
 

Definition at line 782 of file ppcopc.cc.

#define XSPRG_MASK   (XSPR_MASK &~ SPRG_MASK)
 

Definition at line 786 of file ppcopc.cc.

#define XTO op,
xop,
to   )     (X ((op), (xop)) | (((to) & 0x1f) << 21))
 

Definition at line 718 of file ppcopc.cc.

#define XTO_MASK   (X_MASK | TO_MASK)
 

Definition at line 719 of file ppcopc.cc.

#define Y_MASK   (1 << 21)
 

Definition at line 628 of file ppcopc.cc.


Variable Documentation

const int powerpc_num_opcodes
 

Initial value:

  sizeof (powerpc_opcodes) / sizeof (powerpc_opcodes[0])

Definition at line 2380 of file ppcopc.cc.

Referenced by PPCDisassembler::decode().

const struct powerpc_opcode powerpc_opcodes[]
 

Definition at line 859 of file ppcopc.cc.

Referenced by PPCDisassembler::decode().

const struct powerpc_operand powerpc_operands[]
 

Definition at line 283 of file ppcopc.cc.

Referenced by PPCDisassembler::decode().


Generated on Fri May 7 21:15:51 2004 by doxygen 1.3.5