scale.backend.ppc
Class Opcodes

java.lang.Object
  extended by scale.backend.ppc.Opcodes

public class Opcodes
extends java.lang.Object

This class provides PPC instruction information.

$Id: Opcodes.java,v 1.14 2006-10-04 13:59:22 burrill Exp $

Copyright 2005 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.


Field Summary
static int A_FORM
          The different instruction forms.
static int ADD
          These are the Scale opcodes for the PowerPC instructions.
static int ADDC
           
static int ADDCO
           
static int ADDCOP
           
static int ADDCP
           
static int ADDE
           
static int ADDEO
           
static int ADDEOP
           
static int ADDEP
           
static int ADDI
           
static int ADDIC
           
static int ADDICP
           
static int ADDIS
           
static int ADDME
           
static int ADDMEO
           
static int ADDMEOP
           
static int ADDMEP
           
static int ADDO
           
static int ADDOP
           
static int ADDP
           
static int ADDZE
           
static int ADDZEO
           
static int ADDZEOP
           
static int ADDZEP
           
static int AND
           
static int ANDC
           
static int ANDCP
           
static int ANDIP
           
static int ANDISP
           
static int ANDP
           
static int B
           
static int B_FORM
           
static int BA
           
static int BC
           
static int BCA
           
static int BCCTR
           
static int BCCTRL
           
static int BCL
           
static int BCLA
           
static int BCLR
           
static int BCLRL
           
static int BL
           
static int BLA
           
static int BRANCH
          An instruction branches.
static int BRANCH_ALWAYS
          The different types of branch instructions.
static int BRANCH_FALSE
           
static int BRANCH_TRUE
           
static int CMPD
           
static int CMPDI
           
static int CMPLD
           
static int CMPLDI
           
static int CMPLW
           
static int CMPLWI
           
static int CMPW
           
static int CMPWI
           
static int CNTLZD
           
static int CNTLZDP
           
static int CNTLZW
           
static int CNTLZWP
           
static int CRAND
           
static int CRANDC
           
static int CREQV
           
static int CRNAND
           
static int CRNOR
           
static int CROR
           
static int CRORC
           
static int CRXOR
           
static int CTR_SPR
          Special Purpose Register number for counter
static int D_FORM
           
static int DCBA
           
static int DCBF
           
static int DCBI
           
static int DCBST
           
static int DCBT
           
static int DCBTST
           
static int DCBZ
           
static int DIVD
           
static int DIVDO
           
static int DIVDOP
           
static int DIVDP
           
static int DIVDU
           
static int DIVDUO
           
static int DIVDUOP
           
static int DIVDUP
           
static int DIVW
           
static int DIVWO
           
static int DIVWOP
           
static int DIVWP
           
static int DIVWU
           
static int DIVWUO
           
static int DIVWUOP
           
static int DIVWUP
           
static int DS_FORM
           
static int ECIWX
           
static int ECOWX
           
static int EIEIO
           
static int EQ
           
static int EQV
           
static int EQVP
           
static int EXTSB
           
static int EXTSBP
           
static int EXTSH
           
static int EXTSHP
           
static int EXTSW
           
static int EXTSWP
           
static int FABS
           
static int FABSP
           
static int FADD
           
static int FADDP
           
static int FADDS
           
static int FADDSP
           
static int FCFID
           
static int FCFIDP
           
static int FCMPO
           
static int FCMPU
           
static int FCTID
           
static int FCTIDP
           
static int FCTIDZ
           
static int FCTIDZP
           
static int FCTIW
           
static int FCTIWP
           
static int FCTIWZ
           
static int FCTIWZP
           
static int FDIV
           
static int FDIVP
           
static int FDIVS
           
static int FDIVSP
           
static int FMADD
           
static int FMADDP
           
static int FMADDS
           
static int FMADDSP
           
static int FMR
           
static int FMRP
           
static int FMSUB
           
static int FMSUBP
           
static int FMSUBS
           
static int FMSUBSP
           
static int FMUL
           
static int FMULP
           
static int FMULS
           
static int FMULSP
           
static int FNABS
           
static int FNABSP
           
static int FNEG
           
static int FNEGP
           
static int FNMADD
           
static int FNMADDP
           
static int FNMADDS
           
static int FNMADDSP
           
static int FNMSUB
           
static int FNMSUBP
           
static int FNMSUBS
           
static int FNMSUBSP
           
static int FPE
           
static int FPEE
           
static int FPIOE
           
static int FPOE
           
static int FRES
           
static int FRESP
           
static int FRSP
           
static int FRSQRTE
           
static int FRSQRTEP
           
static int FSEL
           
static int FSELP
           
static int FSQRT
           
static int FSQRTP
           
static int FSQRTS
           
static int FSQRTSP
           
static int FSUB
           
static int FSUBP
           
static int FSUBS
           
static int FSUBSP
           
static int GT
           
static int I_FORM
           
static int ICBI
           
static byte[] instForm
          Map from instruction opcode to instruction form.
static byte[] instMode
          Index by the opcode to obtain the type of instruction.
static int ISYNC
           
static int LA
           
static int LBZ
           
static int LBZU
           
static int LBZUX
           
static int LBZX
           
static int LD
           
static int LDARX
           
static int LDU
           
static int LDUX
           
static int LDX
           
static int LFD
           
static int LFDU
           
static int LFDUX
           
static int LFDX
           
static int LFS
           
static int LFSU
           
static int LFSUX
           
static int LFSX
           
static int LHA
           
static int LHAU
           
static int LHAUX
           
static int LHAX
           
static int LHBRX
           
static int LHZ
           
static int LHZU
           
static int LHZUX
           
static int LHZX
           
static int LI
           
static int LIS
           
static int LMW
           
static int LOAD
          An instruction that loads from memory.
static int LR_SPR
          Special Purpose Register (SPR) number for Link Register
static int LSWI
           
static int LSWX
           
static int LT
          Condition register bit meanings
static int LWA
           
static int LWARX
           
static int LWAUX
           
static int LWAX
           
static int LWBRX
           
static int LWZ
           
static int LWZU
           
static int LWZUX
           
static int LWZX
           
static int M_FORM
           
static int MCRF
           
static int MCRFS
           
static int MCRXR
           
static int MD_FORM
           
static int MDS_FORM
           
static int MFCR
           
static int MFFS
           
static int MFFSP
           
static int MFMSR
           
static int MFSPR
           
static int MFSR
           
static int MFSRIN
           
static int MFTB
           
static int MR
           
static int MTCRF
           
static int MTFSB0
           
static int MTFSB0P
           
static int MTFSB1
           
static int MTFSB1P
           
static int MTFSF
           
static int MTFSFI
           
static int MTFSFIP
           
static int MTFSFP
           
static int MTMSR
           
static int MTMSRD
           
static int MTSPR
           
static int MTSR
           
static int MTSRD
           
static int MTSRDIN
           
static int MTSRIN
           
static int MULHD
           
static int MULHDP
           
static int MULHDU
           
static int MULHDUP
           
static int MULHW
           
static int MULHWP
           
static int MULHWU
           
static int MULHWUP
           
static int MULLD
           
static int MULLDO
           
static int MULLDOP
           
static int MULLDP
           
static int MULLI
           
static int MULLW
           
static int MULLWO
           
static int MULLWOP
           
static int MULLWP
           
static int NAND
           
static int NANDP
           
static int NEG
           
static int NEGO
           
static int NEGOP
           
static int NEGP
           
static int[] nonImmediateOpcode
          Index by the opcode to obtain the corresponding opcode which operates on registers rather than immediates.
static int NOR
           
static int NORP
           
static java.lang.String[] opcodes
          Index by the opcode to obtain the string to use for the assembly code.
static int OR
           
static int ORC
           
static int ORCP
           
static int ORI
           
static int ORIS
           
static int ORP
           
static int REGULAR
          A regular instruction like add.
static int RFI
           
static int RFID
           
static int RLDCL
           
static int RLDCLP
           
static int RLDCR
           
static int RLDCRP
           
static int RLDIC
           
static int RLDICL
           
static int RLDICLP
           
static int RLDICP
           
static int RLDICR
           
static int RLDICRP
           
static int RLDIMI
           
static int RLDIMIP
           
static int RLWIMI
           
static int RLWIMIP
           
static int RLWINM
           
static int RLWINMP
           
static int RLWNM
           
static int RLWNMP
           
static int SC
           
static int SC_FORM
           
static int SLBIA
           
static int SLBIE
           
static int SLD
           
static int SLDP
           
static int SLW
           
static int SLWI
           
static int SLWP
           
static int SO
           
static int SRAD
           
static int SRADI
           
static int SRADIP
           
static int SRADP
           
static int SRAW
           
static int SRAWI
           
static int SRAWIP
           
static int SRAWP
           
static int SRD
           
static int SRDP
           
static int SRW
           
static int SRWP
           
static int STB
           
static int STBU
           
static int STBUX
           
static int STBX
           
static int STD
           
static int STDCXP
           
static int STDU
           
static int STDUX
           
static int STDX
           
static int STFD
           
static int STFDU
           
static int STFDUX
           
static int STFDX
           
static int STFIWX
           
static int STFS
           
static int STFSU
           
static int STFSUX
           
static int STFSX
           
static int STH
           
static int STHBRX
           
static int STHU
           
static int STHUX
           
static int STHX
           
static int STMW
           
static int STORE
          An instruction that stores to memory.
static int STSWI
           
static int STSWX
           
static int STW
           
static int STWBRX
           
static int STWCXP
           
static int STWU
           
static int STWUX
           
static int STWX
           
static int SUBF
           
static int SUBFC
           
static int SUBFCO
           
static int SUBFCOP
           
static int SUBFCP
           
static int SUBFE
           
static int SUBFEO
           
static int SUBFEOP
           
static int SUBFEP
           
static int SUBFIC
           
static int SUBFME
           
static int SUBFMEO
           
static int SUBFMEOP
           
static int SUBFMEP
           
static int SUBFO
           
static int SUBFOP
           
static int SUBFP
           
static int SUBFZE
           
static int SUBFZEO
           
static int SUBFZEOP
           
static int SUBFZEP
           
static int SYNC
           
static int TD
           
static int TDI
           
static int TLBIA
           
static int TLBIE
           
static int TLBSYNC
           
static int TW
           
static int TWI
           
static int X_FORM
           
static int XFL_FORM
           
static int XFX_FORM
           
static int XL_FORM
           
static int XO_FORM
           
static int XOR
           
static int XORI
           
static int XORIS
           
static int XORP
           
static int XS_FORM
           
 
Constructor Summary
Opcodes()
           
 
Method Summary
static int getNonImmediateOpcode(int opcode)
          Return the opcode which operates on registers corresponding to this opcode which works on immediates
static java.lang.String getOp(Branch inst)
          Return the opcode mnemonic for the instruction.
static java.lang.String getOp(Instruction inst)
          Return the opcode mnemonic for the instruction.
static java.lang.String getOp(int opcode)
          Return the opcode mnemonic for the instruction opcode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REGULAR

public static final int REGULAR
A regular instruction like add.

See Also:
Constant Field Values

LOAD

public static final int LOAD
An instruction that loads from memory.

See Also:
Constant Field Values

STORE

public static final int STORE
An instruction that stores to memory.

See Also:
Constant Field Values

BRANCH

public static final int BRANCH
An instruction branches.

See Also:
Constant Field Values

LR_SPR

public static final int LR_SPR
Special Purpose Register (SPR) number for Link Register

See Also:
Constant Field Values

CTR_SPR

public static final int CTR_SPR
Special Purpose Register number for counter

See Also:
Constant Field Values

BRANCH_ALWAYS

public static final int BRANCH_ALWAYS
The different types of branch instructions.

See Also:
Constant Field Values

BRANCH_TRUE

public static final int BRANCH_TRUE
See Also:
Constant Field Values

BRANCH_FALSE

public static final int BRANCH_FALSE
See Also:
Constant Field Values

LT

public static final int LT
Condition register bit meanings

See Also:
Constant Field Values

GT

public static final int GT
See Also:
Constant Field Values

EQ

public static final int EQ
See Also:
Constant Field Values

SO

public static final int SO
See Also:
Constant Field Values

FPE

public static final int FPE
See Also:
Constant Field Values

FPEE

public static final int FPEE
See Also:
Constant Field Values

FPIOE

public static final int FPIOE
See Also:
Constant Field Values

FPOE

public static final int FPOE
See Also:
Constant Field Values

A_FORM

public static final int A_FORM
The different instruction forms.

See Also:
Constant Field Values

B_FORM

public static final int B_FORM
See Also:
Constant Field Values

D_FORM

public static final int D_FORM
See Also:
Constant Field Values

DS_FORM

public static final int DS_FORM
See Also:
Constant Field Values

I_FORM

public static final int I_FORM
See Also:
Constant Field Values

M_FORM

public static final int M_FORM
See Also:
Constant Field Values

MD_FORM

public static final int MD_FORM
See Also:
Constant Field Values

MDS_FORM

public static final int MDS_FORM
See Also:
Constant Field Values

SC_FORM

public static final int SC_FORM
See Also:
Constant Field Values

X_FORM

public static final int X_FORM
See Also:
Constant Field Values

XFL_FORM

public static final int XFL_FORM
See Also:
Constant Field Values

XFX_FORM

public static final int XFX_FORM
See Also:
Constant Field Values

XL_FORM

public static final int XL_FORM
See Also:
Constant Field Values

XO_FORM

public static final int XO_FORM
See Also:
Constant Field Values

XS_FORM

public static final int XS_FORM
See Also:
Constant Field Values

ADD

public static final int ADD
These are the Scale opcodes for the PowerPC instructions. These "opcodes" are meant to be used to index into tables to access the actual hardware opcode / extendex opcode, etc. They are defined here in a more convenient form than the actual hardware opcodes.

See Also:
Constant Field Values

ADDP

public static final int ADDP
See Also:
Constant Field Values

ADDC

public static final int ADDC
See Also:
Constant Field Values

ADDCP

public static final int ADDCP
See Also:
Constant Field Values

ADDCO

public static final int ADDCO
See Also:
Constant Field Values

ADDCOP

public static final int ADDCOP
See Also:
Constant Field Values

ADDE

public static final int ADDE
See Also:
Constant Field Values

ADDEP

public static final int ADDEP
See Also:
Constant Field Values

ADDEO

public static final int ADDEO
See Also:
Constant Field Values

ADDEOP

public static final int ADDEOP
See Also:
Constant Field Values

ADDI

public static final int ADDI
See Also:
Constant Field Values

ADDIC

public static final int ADDIC
See Also:
Constant Field Values

ADDICP

public static final int ADDICP
See Also:
Constant Field Values

ADDIS

public static final int ADDIS
See Also:
Constant Field Values

ADDME

public static final int ADDME
See Also:
Constant Field Values

ADDMEP

public static final int ADDMEP
See Also:
Constant Field Values

ADDMEO

public static final int ADDMEO
See Also:
Constant Field Values

ADDMEOP

public static final int ADDMEOP
See Also:
Constant Field Values

ADDO

public static final int ADDO
See Also:
Constant Field Values

ADDOP

public static final int ADDOP
See Also:
Constant Field Values

ADDZE

public static final int ADDZE
See Also:
Constant Field Values

ADDZEP

public static final int ADDZEP
See Also:
Constant Field Values

ADDZEO

public static final int ADDZEO
See Also:
Constant Field Values

ADDZEOP

public static final int ADDZEOP
See Also:
Constant Field Values

AND

public static final int AND
See Also:
Constant Field Values

ANDP

public static final int ANDP
See Also:
Constant Field Values

ANDC

public static final int ANDC
See Also:
Constant Field Values

ANDCP

public static final int ANDCP
See Also:
Constant Field Values

ANDIP

public static final int ANDIP
See Also:
Constant Field Values

ANDISP

public static final int ANDISP
See Also:
Constant Field Values

B

public static final int B
See Also:
Constant Field Values

BA

public static final int BA
See Also:
Constant Field Values

BC

public static final int BC
See Also:
Constant Field Values

BCA

public static final int BCA
See Also:
Constant Field Values

BCCTR

public static final int BCCTR
See Also:
Constant Field Values

BCCTRL

public static final int BCCTRL
See Also:
Constant Field Values

BCL

public static final int BCL
See Also:
Constant Field Values

BCLA

public static final int BCLA
See Also:
Constant Field Values

BCLR

public static final int BCLR
See Also:
Constant Field Values

BCLRL

public static final int BCLRL
See Also:
Constant Field Values

BL

public static final int BL
See Also:
Constant Field Values

BLA

public static final int BLA
See Also:
Constant Field Values

CMPD

public static final int CMPD
See Also:
Constant Field Values

CMPDI

public static final int CMPDI
See Also:
Constant Field Values

CMPLD

public static final int CMPLD
See Also:
Constant Field Values

CMPLDI

public static final int CMPLDI
See Also:
Constant Field Values

CMPLW

public static final int CMPLW
See Also:
Constant Field Values

CMPLWI

public static final int CMPLWI
See Also:
Constant Field Values

CMPW

public static final int CMPW
See Also:
Constant Field Values

CMPWI

public static final int CMPWI
See Also:
Constant Field Values

CNTLZD

public static final int CNTLZD
See Also:
Constant Field Values

CNTLZDP

public static final int CNTLZDP
See Also:
Constant Field Values

CNTLZW

public static final int CNTLZW
See Also:
Constant Field Values

CNTLZWP

public static final int CNTLZWP
See Also:
Constant Field Values

CRAND

public static final int CRAND
See Also:
Constant Field Values

CRANDC

public static final int CRANDC
See Also:
Constant Field Values

CREQV

public static final int CREQV
See Also:
Constant Field Values

CRNAND

public static final int CRNAND
See Also:
Constant Field Values

CRNOR

public static final int CRNOR
See Also:
Constant Field Values

CROR

public static final int CROR
See Also:
Constant Field Values

CRORC

public static final int CRORC
See Also:
Constant Field Values

CRXOR

public static final int CRXOR
See Also:
Constant Field Values

DCBA

public static final int DCBA
See Also:
Constant Field Values

DCBF

public static final int DCBF
See Also:
Constant Field Values

DCBI

public static final int DCBI
See Also:
Constant Field Values

DCBST

public static final int DCBST
See Also:
Constant Field Values

DCBT

public static final int DCBT
See Also:
Constant Field Values

DCBTST

public static final int DCBTST
See Also:
Constant Field Values

DCBZ

public static final int DCBZ
See Also:
Constant Field Values

DIVD

public static final int DIVD
See Also:
Constant Field Values

DIVDP

public static final int DIVDP
See Also:
Constant Field Values

DIVDO

public static final int DIVDO
See Also:
Constant Field Values

DIVDOP

public static final int DIVDOP
See Also:
Constant Field Values

DIVDU

public static final int DIVDU
See Also:
Constant Field Values

DIVDUP

public static final int DIVDUP
See Also:
Constant Field Values

DIVDUO

public static final int DIVDUO
See Also:
Constant Field Values

DIVDUOP

public static final int DIVDUOP
See Also:
Constant Field Values

DIVW

public static final int DIVW
See Also:
Constant Field Values

DIVWP

public static final int DIVWP
See Also:
Constant Field Values

DIVWO

public static final int DIVWO
See Also:
Constant Field Values

DIVWOP

public static final int DIVWOP
See Also:
Constant Field Values

DIVWU

public static final int DIVWU
See Also:
Constant Field Values

DIVWUP

public static final int DIVWUP
See Also:
Constant Field Values

DIVWUO

public static final int DIVWUO
See Also:
Constant Field Values

DIVWUOP

public static final int DIVWUOP
See Also:
Constant Field Values

ECIWX

public static final int ECIWX
See Also:
Constant Field Values

ECOWX

public static final int ECOWX
See Also:
Constant Field Values

EIEIO

public static final int EIEIO
See Also:
Constant Field Values

EQV

public static final int EQV
See Also:
Constant Field Values

EQVP

public static final int EQVP
See Also:
Constant Field Values

EXTSB

public static final int EXTSB
See Also:
Constant Field Values

EXTSBP

public static final int EXTSBP
See Also:
Constant Field Values

EXTSH

public static final int EXTSH
See Also:
Constant Field Values

EXTSHP

public static final int EXTSHP
See Also:
Constant Field Values

EXTSW

public static final int EXTSW
See Also:
Constant Field Values

EXTSWP

public static final int EXTSWP
See Also:
Constant Field Values

FABS

public static final int FABS
See Also:
Constant Field Values

FABSP

public static final int FABSP
See Also:
Constant Field Values

FADD

public static final int FADD
See Also:
Constant Field Values

FADDP

public static final int FADDP
See Also:
Constant Field Values

FADDS

public static final int FADDS
See Also:
Constant Field Values

FADDSP

public static final int FADDSP
See Also:
Constant Field Values

FCFID

public static final int FCFID
See Also:
Constant Field Values

FCFIDP

public static final int FCFIDP
See Also:
Constant Field Values

FCMPO

public static final int FCMPO
See Also:
Constant Field Values

FCMPU

public static final int FCMPU
See Also:
Constant Field Values

FCTID

public static final int FCTID
See Also:
Constant Field Values

FCTIDP

public static final int FCTIDP
See Also:
Constant Field Values

FCTIDZ

public static final int FCTIDZ
See Also:
Constant Field Values

FCTIDZP

public static final int FCTIDZP
See Also:
Constant Field Values

FCTIW

public static final int FCTIW
See Also:
Constant Field Values

FCTIWP

public static final int FCTIWP
See Also:
Constant Field Values

FCTIWZ

public static final int FCTIWZ
See Also:
Constant Field Values

FCTIWZP

public static final int FCTIWZP
See Also:
Constant Field Values

FDIV

public static final int FDIV
See Also:
Constant Field Values

FDIVP

public static final int FDIVP
See Also:
Constant Field Values

FDIVS

public static final int FDIVS
See Also:
Constant Field Values

FDIVSP

public static final int FDIVSP
See Also:
Constant Field Values

FMADD

public static final int FMADD
See Also:
Constant Field Values

FMADDP

public static final int FMADDP
See Also:
Constant Field Values

FMADDS

public static final int FMADDS
See Also:
Constant Field Values

FMADDSP

public static final int FMADDSP
See Also:
Constant Field Values

FMR

public static final int FMR
See Also:
Constant Field Values

FMRP

public static final int FMRP
See Also:
Constant Field Values

FMSUB

public static final int FMSUB
See Also:
Constant Field Values

FMSUBP

public static final int FMSUBP
See Also:
Constant Field Values

FMSUBS

public static final int FMSUBS
See Also:
Constant Field Values

FMSUBSP

public static final int FMSUBSP
See Also:
Constant Field Values

FMUL

public static final int FMUL
See Also:
Constant Field Values

FMULP

public static final int FMULP
See Also:
Constant Field Values

FMULS

public static final int FMULS
See Also:
Constant Field Values

FMULSP

public static final int FMULSP
See Also:
Constant Field Values

FNABS

public static final int FNABS
See Also:
Constant Field Values

FNABSP

public static final int FNABSP
See Also:
Constant Field Values

FNEG

public static final int FNEG
See Also:
Constant Field Values

FNEGP

public static final int FNEGP
See Also:
Constant Field Values

FNMADD

public static final int FNMADD
See Also:
Constant Field Values

FNMADDP

public static final int FNMADDP
See Also:
Constant Field Values

FNMADDS

public static final int FNMADDS
See Also:
Constant Field Values

FNMADDSP

public static final int FNMADDSP
See Also:
Constant Field Values

FNMSUB

public static final int FNMSUB
See Also:
Constant Field Values

FNMSUBP

public static final int FNMSUBP
See Also:
Constant Field Values

FNMSUBS

public static final int FNMSUBS
See Also:
Constant Field Values

FNMSUBSP

public static final int FNMSUBSP
See Also:
Constant Field Values

FRES

public static final int FRES
See Also:
Constant Field Values

FRESP

public static final int FRESP
See Also:
Constant Field Values

FRSP

public static final int FRSP
See Also:
Constant Field Values

FRSQRTE

public static final int FRSQRTE
See Also:
Constant Field Values

FRSQRTEP

public static final int FRSQRTEP
See Also:
Constant Field Values

FSEL

public static final int FSEL
See Also:
Constant Field Values

FSELP

public static final int FSELP
See Also:
Constant Field Values

FSQRT

public static final int FSQRT
See Also:
Constant Field Values

FSQRTP

public static final int FSQRTP
See Also:
Constant Field Values

FSQRTS

public static final int FSQRTS
See Also:
Constant Field Values

FSQRTSP

public static final int FSQRTSP
See Also:
Constant Field Values

FSUB

public static final int FSUB
See Also:
Constant Field Values

FSUBP

public static final int FSUBP
See Also:
Constant Field Values

FSUBS

public static final int FSUBS
See Also:
Constant Field Values

FSUBSP

public static final int FSUBSP
See Also:
Constant Field Values

ICBI

public static final int ICBI
See Also:
Constant Field Values

ISYNC

public static final int ISYNC
See Also:
Constant Field Values

LBZ

public static final int LBZ
See Also:
Constant Field Values

LBZU

public static final int LBZU
See Also:
Constant Field Values

LBZUX

public static final int LBZUX
See Also:
Constant Field Values

LBZX

public static final int LBZX
See Also:
Constant Field Values

LD

public static final int LD
See Also:
Constant Field Values

LDARX

public static final int LDARX
See Also:
Constant Field Values

LDU

public static final int LDU
See Also:
Constant Field Values

LDUX

public static final int LDUX
See Also:
Constant Field Values

LDX

public static final int LDX
See Also:
Constant Field Values

LFD

public static final int LFD
See Also:
Constant Field Values

LFDU

public static final int LFDU
See Also:
Constant Field Values

LFDUX

public static final int LFDUX
See Also:
Constant Field Values

LFDX

public static final int LFDX
See Also:
Constant Field Values

LFS

public static final int LFS
See Also:
Constant Field Values

LFSU

public static final int LFSU
See Also:
Constant Field Values

LFSUX

public static final int LFSUX
See Also:
Constant Field Values

LFSX

public static final int LFSX
See Also:
Constant Field Values

LHA

public static final int LHA
See Also:
Constant Field Values

LHAU

public static final int LHAU
See Also:
Constant Field Values

LHAUX

public static final int LHAUX
See Also:
Constant Field Values

LHAX

public static final int LHAX
See Also:
Constant Field Values

LHBRX

public static final int LHBRX
See Also:
Constant Field Values

LHZ

public static final int LHZ
See Also:
Constant Field Values

LHZU

public static final int LHZU
See Also:
Constant Field Values

LHZUX

public static final int LHZUX
See Also:
Constant Field Values

LHZX

public static final int LHZX
See Also:
Constant Field Values

LMW

public static final int LMW
See Also:
Constant Field Values

LSWI

public static final int LSWI
See Also:
Constant Field Values

LSWX

public static final int LSWX
See Also:
Constant Field Values

LWA

public static final int LWA
See Also:
Constant Field Values

LWARX

public static final int LWARX
See Also:
Constant Field Values

LWAUX

public static final int LWAUX
See Also:
Constant Field Values

LWAX

public static final int LWAX
See Also:
Constant Field Values

LWBRX

public static final int LWBRX
See Also:
Constant Field Values

LWZ

public static final int LWZ
See Also:
Constant Field Values

LWZU

public static final int LWZU
See Also:
Constant Field Values

LWZUX

public static final int LWZUX
See Also:
Constant Field Values

LWZX

public static final int LWZX
See Also:
Constant Field Values

MCRF

public static final int MCRF
See Also:
Constant Field Values

MCRFS

public static final int MCRFS
See Also:
Constant Field Values

MCRXR

public static final int MCRXR
See Also:
Constant Field Values

MFCR

public static final int MFCR
See Also:
Constant Field Values

MFFS

public static final int MFFS
See Also:
Constant Field Values

MFFSP

public static final int MFFSP
See Also:
Constant Field Values

MFMSR

public static final int MFMSR
See Also:
Constant Field Values

MFSPR

public static final int MFSPR
See Also:
Constant Field Values

MFSR

public static final int MFSR
See Also:
Constant Field Values

MFSRIN

public static final int MFSRIN
See Also:
Constant Field Values

MFTB

public static final int MFTB
See Also:
Constant Field Values

MTCRF

public static final int MTCRF
See Also:
Constant Field Values

MTFSB0

public static final int MTFSB0
See Also:
Constant Field Values

MTFSB0P

public static final int MTFSB0P
See Also:
Constant Field Values

MTFSB1

public static final int MTFSB1
See Also:
Constant Field Values

MTFSB1P

public static final int MTFSB1P
See Also:
Constant Field Values

MTFSF

public static final int MTFSF
See Also:
Constant Field Values

MTFSFP

public static final int MTFSFP
See Also:
Constant Field Values

MTFSFI

public static final int MTFSFI
See Also:
Constant Field Values

MTFSFIP

public static final int MTFSFIP
See Also:
Constant Field Values

MTMSR

public static final int MTMSR
See Also:
Constant Field Values

MTMSRD

public static final int MTMSRD
See Also:
Constant Field Values

MTSPR

public static final int MTSPR
See Also:
Constant Field Values

MTSR

public static final int MTSR
See Also:
Constant Field Values

MTSRD

public static final int MTSRD
See Also:
Constant Field Values

MTSRDIN

public static final int MTSRDIN
See Also:
Constant Field Values

MTSRIN

public static final int MTSRIN
See Also:
Constant Field Values

MULHD

public static final int MULHD
See Also:
Constant Field Values

MULHDP

public static final int MULHDP
See Also:
Constant Field Values

MULHDU

public static final int MULHDU
See Also:
Constant Field Values

MULHDUP

public static final int MULHDUP
See Also:
Constant Field Values

MULHW

public static final int MULHW
See Also:
Constant Field Values

MULHWP

public static final int MULHWP
See Also:
Constant Field Values

MULHWU

public static final int MULHWU
See Also:
Constant Field Values

MULHWUP

public static final int MULHWUP
See Also:
Constant Field Values

MULLD

public static final int MULLD
See Also:
Constant Field Values

MULLDP

public static final int MULLDP
See Also:
Constant Field Values

MULLDO

public static final int MULLDO
See Also:
Constant Field Values

MULLDOP

public static final int MULLDOP
See Also:
Constant Field Values

MULLI

public static final int MULLI
See Also:
Constant Field Values

MULLW

public static final int MULLW
See Also:
Constant Field Values

MULLWP

public static final int MULLWP
See Also:
Constant Field Values

MULLWO

public static final int MULLWO
See Also:
Constant Field Values

MULLWOP

public static final int MULLWOP
See Also:
Constant Field Values

NAND

public static final int NAND
See Also:
Constant Field Values

NANDP

public static final int NANDP
See Also:
Constant Field Values

NEG

public static final int NEG
See Also:
Constant Field Values

NEGP

public static final int NEGP
See Also:
Constant Field Values

NEGO

public static final int NEGO
See Also:
Constant Field Values

NEGOP

public static final int NEGOP
See Also:
Constant Field Values

NOR

public static final int NOR
See Also:
Constant Field Values

NORP

public static final int NORP
See Also:
Constant Field Values

OR

public static final int OR
See Also:
Constant Field Values

ORP

public static final int ORP
See Also:
Constant Field Values

ORC

public static final int ORC
See Also:
Constant Field Values

ORCP

public static final int ORCP
See Also:
Constant Field Values

ORI

public static final int ORI
See Also:
Constant Field Values

ORIS

public static final int ORIS
See Also:
Constant Field Values

RFI

public static final int RFI
See Also:
Constant Field Values

RFID

public static final int RFID
See Also:
Constant Field Values

RLDCL

public static final int RLDCL
See Also:
Constant Field Values

RLDCLP

public static final int RLDCLP
See Also:
Constant Field Values

RLDCR

public static final int RLDCR
See Also:
Constant Field Values

RLDCRP

public static final int RLDCRP
See Also:
Constant Field Values

RLDIC

public static final int RLDIC
See Also:
Constant Field Values

RLDICP

public static final int RLDICP
See Also:
Constant Field Values

RLDICL

public static final int RLDICL
See Also:
Constant Field Values

RLDICLP

public static final int RLDICLP
See Also:
Constant Field Values

RLDICR

public static final int RLDICR
See Also:
Constant Field Values

RLDICRP

public static final int RLDICRP
See Also:
Constant Field Values

RLDIMI

public static final int RLDIMI
See Also:
Constant Field Values

RLDIMIP

public static final int RLDIMIP
See Also:
Constant Field Values

RLWIMI

public static final int RLWIMI
See Also:
Constant Field Values

RLWIMIP

public static final int RLWIMIP
See Also:
Constant Field Values

RLWINM

public static final int RLWINM
See Also:
Constant Field Values

RLWINMP

public static final int RLWINMP
See Also:
Constant Field Values

RLWNM

public static final int RLWNM
See Also:
Constant Field Values

RLWNMP

public static final int RLWNMP
See Also:
Constant Field Values

SC

public static final int SC
See Also:
Constant Field Values

SLBIA

public static final int SLBIA
See Also:
Constant Field Values

SLBIE

public static final int SLBIE
See Also:
Constant Field Values

SLD

public static final int SLD
See Also:
Constant Field Values

SLDP

public static final int SLDP
See Also:
Constant Field Values

SLW

public static final int SLW
See Also:
Constant Field Values

SLWP

public static final int SLWP
See Also:
Constant Field Values

SRAD

public static final int SRAD
See Also:
Constant Field Values

SRADP

public static final int SRADP
See Also:
Constant Field Values

SRADI

public static final int SRADI
See Also:
Constant Field Values

SRADIP

public static final int SRADIP
See Also:
Constant Field Values

SRAW

public static final int SRAW
See Also:
Constant Field Values

SRAWP

public static final int SRAWP
See Also:
Constant Field Values

SRAWI

public static final int SRAWI
See Also:
Constant Field Values

SRAWIP

public static final int SRAWIP
See Also:
Constant Field Values

SRD

public static final int SRD
See Also:
Constant Field Values

SRDP

public static final int SRDP
See Also:
Constant Field Values

SRW

public static final int SRW
See Also:
Constant Field Values

SRWP

public static final int SRWP
See Also:
Constant Field Values

STB

public static final int STB
See Also:
Constant Field Values

STBU

public static final int STBU
See Also:
Constant Field Values

STBUX

public static final int STBUX
See Also:
Constant Field Values

STBX

public static final int STBX
See Also:
Constant Field Values

STD

public static final int STD
See Also:
Constant Field Values

STDCXP

public static final int STDCXP
See Also:
Constant Field Values

STDU

public static final int STDU
See Also:
Constant Field Values

STDUX

public static final int STDUX
See Also:
Constant Field Values

STDX

public static final int STDX
See Also:
Constant Field Values

STFD

public static final int STFD
See Also:
Constant Field Values

STFDU

public static final int STFDU
See Also:
Constant Field Values

STFDUX

public static final int STFDUX
See Also:
Constant Field Values

STFDX

public static final int STFDX
See Also:
Constant Field Values

STFIWX

public static final int STFIWX
See Also:
Constant Field Values

STFS

public static final int STFS
See Also:
Constant Field Values

STFSU

public static final int STFSU
See Also:
Constant Field Values

STFSUX

public static final int STFSUX
See Also:
Constant Field Values

STFSX

public static final int STFSX
See Also:
Constant Field Values

STH

public static final int STH
See Also:
Constant Field Values

STHBRX

public static final int STHBRX
See Also:
Constant Field Values

STHU

public static final int STHU
See Also:
Constant Field Values

STHUX

public static final int STHUX
See Also:
Constant Field Values

STHX

public static final int STHX
See Also:
Constant Field Values

STMW

public static final int STMW
See Also:
Constant Field Values

STSWI

public static final int STSWI
See Also:
Constant Field Values

STSWX

public static final int STSWX
See Also:
Constant Field Values

STW

public static final int STW
See Also:
Constant Field Values

STWBRX

public static final int STWBRX
See Also:
Constant Field Values

STWCXP

public static final int STWCXP
See Also:
Constant Field Values

STWU

public static final int STWU
See Also:
Constant Field Values

STWUX

public static final int STWUX
See Also:
Constant Field Values

STWX

public static final int STWX
See Also:
Constant Field Values

SUBF

public static final int SUBF
See Also:
Constant Field Values

SUBFP

public static final int SUBFP
See Also:
Constant Field Values

SUBFC

public static final int SUBFC
See Also:
Constant Field Values

SUBFCP

public static final int SUBFCP
See Also:
Constant Field Values

SUBFCO

public static final int SUBFCO
See Also:
Constant Field Values

SUBFCOP

public static final int SUBFCOP
See Also:
Constant Field Values

SUBFE

public static final int SUBFE
See Also:
Constant Field Values

SUBFEP

public static final int SUBFEP
See Also:
Constant Field Values

SUBFEO

public static final int SUBFEO
See Also:
Constant Field Values

SUBFEOP

public static final int SUBFEOP
See Also:
Constant Field Values

SUBFIC

public static final int SUBFIC
See Also:
Constant Field Values

SUBFME

public static final int SUBFME
See Also:
Constant Field Values

SUBFMEP

public static final int SUBFMEP
See Also:
Constant Field Values

SUBFMEO

public static final int SUBFMEO
See Also:
Constant Field Values

SUBFMEOP

public static final int SUBFMEOP
See Also:
Constant Field Values

SUBFO

public static final int SUBFO
See Also:
Constant Field Values

SUBFOP

public static final int SUBFOP
See Also:
Constant Field Values

SUBFZE

public static final int SUBFZE
See Also:
Constant Field Values

SUBFZEP

public static final int SUBFZEP
See Also:
Constant Field Values

SUBFZEO

public static final int SUBFZEO
See Also:
Constant Field Values

SUBFZEOP

public static final int SUBFZEOP
See Also:
Constant Field Values

SYNC

public static final int SYNC
See Also:
Constant Field Values

TD

public static final int TD
See Also:
Constant Field Values

TDI

public static final int TDI
See Also:
Constant Field Values

TLBIA

public static final int TLBIA
See Also:
Constant Field Values

TLBIE

public static final int TLBIE
See Also:
Constant Field Values

TLBSYNC

public static final int TLBSYNC
See Also:
Constant Field Values

TW

public static final int TW
See Also:
Constant Field Values

TWI

public static final int TWI
See Also:
Constant Field Values

XOR

public static final int XOR
See Also:
Constant Field Values

XORP

public static final int XORP
See Also:
Constant Field Values

XORI

public static final int XORI
See Also:
Constant Field Values

XORIS

public static final int XORIS
See Also:
Constant Field Values

LA

public static final int LA
See Also:
Constant Field Values

LI

public static final int LI
See Also:
Constant Field Values

LIS

public static final int LIS
See Also:
Constant Field Values

MR

public static final int MR
See Also:
Constant Field Values

SLWI

public static final int SLWI
See Also:
Constant Field Values

opcodes

public static final java.lang.String[] opcodes
Index by the opcode to obtain the string to use for the assembly code.


instForm

public static final byte[] instForm
Map from instruction opcode to instruction form.


instMode

public static final byte[] instMode
Index by the opcode to obtain the type of instruction.


nonImmediateOpcode

public static final int[] nonImmediateOpcode
Index by the opcode to obtain the corresponding opcode which operates on registers rather than immediates. For example, the opcode corresponding to CMPWI is CMPW.

Constructor Detail

Opcodes

public Opcodes()
Method Detail

getOp

public static java.lang.String getOp(Instruction inst)
Return the opcode mnemonic for the instruction.


getOp

public static java.lang.String getOp(Branch inst)
Return the opcode mnemonic for the instruction.


getOp

public static java.lang.String getOp(int opcode)
Return the opcode mnemonic for the instruction opcode.


getNonImmediateOpcode

public static int getNonImmediateOpcode(int opcode)
Return the opcode which operates on registers corresponding to this opcode which works on immediates