예제 #1
0
        public Instruction(uint address, uint code)
        {
            this.Address = address;
            this.Code    = code;

            InstructionEntry instructionEntry = InstructionTables.GetInstruction(code);

            if (instructionEntry == null)
            {
                Debug.WriteLine(string.Format("Instruction::ctor: no entry found for code {0:X8} at {1:X8}", code, address));
            }
            else
            {
                Debug.Assert(instructionEntry.Formatter != null);

                bool formatted = instructionEntry.Formatter(address, code, instructionEntry, out this.Opcode, out this.Operands);
                Debug.Assert(formatted == true);
            }
        }
예제 #2
0
		public TableReference( InstructionTables.InstructionEncoding reference )
		{
			this.Reference = reference;
		}