Пример #1
0
        // Decodes an ALU instruction from three uints.
        // (the uints must have endianness swapped so when ToString("X8") is used, they appear in
        // same order as raw hex)
        public static ALUInstruction DecodeALU(uint dword0, uint dword1, uint dword2)
        {
            var alu = new ALUInstruction();

            decodeALU(dword0, dword1, dword2, ref alu);
            return(alu);
        }
Пример #2
0
 private static extern void decodeALU(uint dword0, uint dword1, uint dword2, ref ALUInstruction alui);
Пример #3
0
 public Instruction(ControlFlowInstruction[] cf_instrs, ALUInstruction alu_instr, FetchInstruction fetch_instr)
 {
     this.cf_instrs   = cf_instrs;
     this.alu_instr   = alu_instr;
     this.fetch_instr = fetch_instr;
 }