コード例 #1
0
ファイル: MethodBody.cs プロジェクト: mattweb28/pspplayer
        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
ファイル: TableEntry.cs プロジェクト: BradFuller/pspplayer
		public TableReference( InstructionTables.InstructionEncoding reference )
		{
			this.Reference = reference;
		}