当前位置: 首页>>代码示例>>C#>>正文


C# MemoryDomain.PeekByte方法代码示例

本文整理汇总了C#中BizHawk.Emulation.Common.MemoryDomain.PeekByte方法的典型用法代码示例。如果您正苦于以下问题:C# MemoryDomain.PeekByte方法的具体用法?C# MemoryDomain.PeekByte怎么用?C# MemoryDomain.PeekByte使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BizHawk.Emulation.Common.MemoryDomain的用法示例。


在下文中一共展示了MemoryDomain.PeekByte方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Disassemble

		public override string Disassemble(MemoryDomain m, uint addr, out int length)
		{
			ushort tmp;
			string ret = Common.Components.Z80GB.NewDisassembler.Disassemble((ushort)addr, (a) => m.PeekByte(a), out tmp);
			length = tmp;
			return ret;
		}
开发者ID:CadeLaRen,项目名称:BizHawk,代码行数:7,代码来源:GBDisassembler.cs

示例2: Disassemble

        public string Disassemble(MemoryDomain m, uint addr, out int length)
        {
            _disassemblerInstance.ReadWord = (a) => (short)m.PeekUshort(a, m.EndianType == MemoryDomain.Endian.Big);
            _disassemblerInstance.ReadByte = (a) => (sbyte)m.PeekByte(a);
            _disassemblerInstance.ReadLong = (a) => (int)m.PeekUint(a, m.EndianType == MemoryDomain.Endian.Big);
            var info = _disassemblerInstance.Disassemble((int)addr);

            length = info.Length;

            return string.Format("{0:X4}  {1,-7} {2}", info.RawBytes.Substring(0, 4), info.Mnemonic, info.Args);
        }
开发者ID:CadeLaRen,项目名称:BizHawk,代码行数:11,代码来源:GPGX.IDisassembler.cs

示例3: Disassemble

		public override string Disassemble(MemoryDomain m, uint addr, out int length)
		{
			if (_cpu == "ARM v4 (Thumb)")
			{
				addr &= unchecked((uint)~1);
				int op = m.PeekByte((int)addr) | m.PeekByte((int)addr + 1) << 8;
				string ret = Emulation.Cores.Components.ARM.Darm.DisassembleStuff(addr | 1, (uint)op);
				length = 2;
				return ret;
			}
			else
			{
				addr &= unchecked((uint)~3);
				int op = m.PeekByte((int)addr)
					| m.PeekByte((int)addr + 1) << 8
					| m.PeekByte((int)addr + 2) << 16
					| m.PeekByte((int)addr + 3) << 24;
				string ret = Emulation.Cores.Components.ARM.Darm.DisassembleStuff(addr, (uint)op);
				length = 4;
				return ret;
			}
		}
开发者ID:CadeLaRen,项目名称:BizHawk,代码行数:22,代码来源:ArmV4Disassembler.cs

示例4: Disassemble

		public string Disassemble(MemoryDomain m, uint addr, out int length)
		{
			return MOS6502X.Disassemble((ushort)addr, out length, (a) => m.PeekByte(a));
		}
开发者ID:henke37,项目名称:BizHawk,代码行数:4,代码来源:AppleII.IDisassembler.cs

示例5: SetPreviousToCurrent

			public void SetPreviousToCurrent(MemoryDomain domain, bool bigendian)
			{
				_previous = domain.PeekByte(Address % domain.Size);
			}
开发者ID:ddugovic,项目名称:RASuite,代码行数:4,代码来源:RamSearchEngine.cs

示例6: MiniByteWatch

			public MiniByteWatch(MemoryDomain domain, int addr)
			{
				Address = addr;
				_previous = domain.PeekByte(Address % domain.Size);
			}
开发者ID:ddugovic,项目名称:RASuite,代码行数:5,代码来源:RamSearchEngine.cs

示例7: Update

			public void Update(Watch.PreviousType type, MemoryDomain domain, bool bigendian)
			{
				var value = domain.PeekByte(Address % domain.Size);
				
				if (value != _prevFrame)
				{
					_changecount++;
				}

				switch (type)
				{
					case Watch.PreviousType.Original:
					case Watch.PreviousType.LastSearch:
						break;
					case Watch.PreviousType.LastFrame:
						_previous = _prevFrame;
						break;
				}

				_prevFrame = value;
			}
开发者ID:ddugovic,项目名称:RASuite,代码行数:21,代码来源:RamSearchEngine.cs

示例8: Disassemble

		public string Disassemble(MemoryDomain m, uint addr, out int length)
		{
			return DisassembleExt((ushort)addr, out length,
				(a) => m.PeekByte(a),
				(a) => (ushort)(m.PeekByte(a) | m.PeekByte(a + 1) << 8));
		}
开发者ID:henke37,项目名称:BizHawk,代码行数:6,代码来源:IDisassemblable.cs

示例9: Disassemble

		public string Disassemble(MemoryDomain m, uint addr, out int length)
		{
			return Disassemble((ushort)addr, out length, a => m.PeekByte((int)a));
		}
开发者ID:henke37,项目名称:BizHawk,代码行数:4,代码来源:Disassembler.cs


注:本文中的BizHawk.Emulation.Common.MemoryDomain.PeekByte方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。