Exemplo n.º 1
0
 // If the instructions LSB is '1', then set the setsCR0
 internal static bool C(uint wInstr, PowerPcDisassembler dasm)
 {
     dasm.allowSetCR0 = (wInstr & 1) != 0;
     return(true);
 }
Exemplo n.º 2
0
 // Force the setsCR0 flag to '1'.
 internal static bool CC(uint uInstr, PowerPcDisassembler dasm)
 {
     dasm.allowSetCR0 = true;
     return(true);
 }
Exemplo n.º 3
0
 // Unsigned integer in bottom 16 bits of instruction.
 internal static bool U(uint wInstr, PowerPcDisassembler dasm)
 {
     dasm.ops.Add(new ImmediateOperand(Constant.Word16((ushort)wInstr)));
     return(true);
 }
Exemplo n.º 4
0
 internal static bool Is64Bit(uint wInstr, PowerPcDisassembler dasm)
 {
     return(dasm.defaultWordWidth.BitSize == 64);
 }
 public override PowerPcInstruction Decode(PowerPcDisassembler dasm, uint wInstr)
 {
     EmitUnitTest(wInstr);
     return(dasm.CreateInvalidInstruction());
 }
            public override PowerPcInstruction Decode(PowerPcDisassembler dasm, uint wInstr)
            {
                var bitfield = (wInstr >> shift) & mask;

                return(decoders[bitfield].Decode(dasm, wInstr));
            }
 public abstract PowerPcInstruction Decode(PowerPcDisassembler dasm, uint wInstr);
 public override PowerPcInstruction Decode(PowerPcDisassembler dasm, uint wInstr)
 {
     return(xDecoders[(wInstr >> 1) & 0x3FF].Decode(dasm, wInstr));
 }
 public override PowerPcInstruction Decode(PowerPcDisassembler dasm, uint wInstr)
 {
     return(decoder(dasm, wInstr));
 }
Exemplo n.º 10
0
 public override PowerPcInstruction Decode(PowerPcDisassembler dasm, uint wInstr)
 {
     return(DecodeOperands(wInstr, dasm, iclass, mnemonic, mutators));
 }
Exemplo n.º 11
0
 public override PowerPcInstruction Decode(uint wInstr, PowerPcDisassembler dasm)
 {
     return(dasm.CreateInvalidInstruction());
 }
Exemplo n.º 12
0
 public override PowerPcInstruction Decode(uint wInstr, PowerPcDisassembler dasm)
 {
     return(xDecoders[(wInstr >> 1) & 0x3FF].Decode(wInstr, dasm));
 }
 public override PowerPcInstruction Decode(PowerPcDisassembler dasm, uint wInstr)
 {
     EmitUnitTest(wInstr);
     return(new PowerPcInstruction(Opcode.illegal));
 }
 public override PowerPcInstruction Decode(PowerPcDisassembler dasm, uint wInstr)
 {
     return(dasm.DecodeOperands(opcode, wInstr, opFmt));
 }
Exemplo n.º 15
0
 public override PowerPcInstruction Decode(uint wInstr, PowerPcDisassembler dasm)
 {
     return(dasm.NotYetImplemented(message));
 }