コード例 #1
0
ファイル: Instructions.cs プロジェクト: sharpos/SharpOS
		/// <summary>
		/// XOR rmreg8,imm8
		/// </summary>
		public void XOR (R8Type target, Byte source)
		{
			if (target == R8.AL)
				this.instructions.Add (new Instruction (true, string.Empty, string.Empty, "XOR_AL", "AL" + ", " + string.Format ("0x{0:x}", source), null, null, null, new UInt32 [] { source }, new string [] { "34", "ib" }));
			else {
				this.instructions.Add (new Instruction (true, string.Empty, string.Empty, "XOR", target.ToString () + ", " + string.Format ("0x{0:x}", source), null, target, null, new UInt32 [] { source }, new string [] { "80", "/6", "ib" }));
			}
		}
コード例 #2
0
ファイル: Instructions.cs プロジェクト: sharpos/SharpOS
		/// <summary>
		/// XOR rmreg8,reg8
		/// </summary>
		public void XOR (R8Type target, R8Type source)
		{
			this.instructions.Add (new Instruction (true, string.Empty, string.Empty, "XOR", target.ToString () + ", " + source.ToString (), null, target, source, null, new string [] { "30", "/r" }));
		}
コード例 #3
0
ファイル: Instructions.cs プロジェクト: sharpos/SharpOS
		/// <summary>
		/// ADC reg8,mem8
		/// </summary>
		public void ADC (R8Type target, ByteMemory source)
		{
			this.instructions.Add (new Instruction (true, string.Empty, string.Empty, "ADC", target.ToString () + ", " + source.ToString (), source, null, target, null, new string [] { "12", "/r" }));
		}
コード例 #4
0
ファイル: Instructions.cs プロジェクト: sharpos/SharpOS
		/// <summary>
		/// SHR rmreg8,imm8
		/// </summary>
		public void SHR (R8Type target, Byte source)
		{
			if (source == 1)
				this.instructions.Add (new Instruction (true, string.Empty, string.Empty, "SHR__1", target.ToString () + ", " + "1", null, target, null, null, new string [] { "D0", "/5" }));
			else {
				this.instructions.Add (new Instruction (true, string.Empty, string.Empty, "SHR", target.ToString () + ", " + string.Format ("0x{0:x}", source), null, target, null, new UInt32 [] { source }, new string [] { "C0", "/5", "ib" }));
			}
		}
コード例 #5
0
ファイル: Instructions.cs プロジェクト: sharpos/SharpOS
		/// <summary>
		/// XCHG mem8,reg8
		/// </summary>
		public void XCHG (ByteMemory target, R8Type source)
		{
			this.instructions.Add (new Instruction (true, string.Empty, string.Empty, "XCHG", target.ToString () + ", " + source.ToString (), target, null, source, null, new string [] { "86", "/r" }));
		}
コード例 #6
0
ファイル: Instructions.cs プロジェクト: sharpos/SharpOS
		/// <summary>
		/// SETZ rmreg8
		/// </summary>
		public void SETZ (R8Type target)
		{
			this.instructions.Add (new Instruction (true, string.Empty, string.Empty, "SETZ", target.ToString (), null, target, null, null, new string [] { "0F", "94", "/0" }));
		}
コード例 #7
0
ファイル: Instructions.cs プロジェクト: sharpos/SharpOS
		/// <summary>
		/// SHR rmreg8,CL
		/// </summary>
		public void SHR__CL (R8Type target)
		{
			this.instructions.Add (new Instruction (true, string.Empty, string.Empty, "SHR__CL", target.ToString () + ", " + "CL", null, target, null, null, new string [] { "D2", "/5" }));
		}
コード例 #8
0
ファイル: Instructions.cs プロジェクト: sharpos/SharpOS
		/// <summary>
		/// NOT rmreg8
		/// </summary>
		public void NOT (R8Type target)
		{
			this.instructions.Add (new Instruction (true, string.Empty, string.Empty, "NOT", target.ToString (), null, target, null, null, new string [] { "F6", "/2" }));
		}
コード例 #9
0
ファイル: Instructions.cs プロジェクト: sharpos/SharpOS
		/// <summary>
		/// MOVZX reg32,rmreg8
		/// </summary>
		public void MOVZX (R32Type target, R8Type source)
		{
			this.instructions.Add (new Instruction (true, string.Empty, string.Empty, "MOVZX", target.ToString () + ", " + source.ToString (), null, source, target, null, new string [] { "o32", "0F", "B6", "/r" }));
		}
コード例 #10
0
ファイル: Instructions.cs プロジェクト: sharpos/SharpOS
		/// <summary>
		/// MOV reg8,imm8
		/// </summary>
		public void MOV (R8Type target, Byte source)
		{
			this.instructions.Add (new Instruction (true, string.Empty, string.Empty, "MOV", target.ToString () + ", " + string.Format ("0x{0:x}", source), null, null, target, new UInt32 [] { source }, new string [] { "B0+r", "ib" }));
		}
コード例 #11
0
ファイル: Instructions.cs プロジェクト: sharpos/SharpOS
		/// <summary>
		/// INC rmreg8
		/// </summary>
		public void INC (R8Type target)
		{
			this.instructions.Add (new Instruction (true, string.Empty, string.Empty, "INC", target.ToString (), null, target, null, null, new string [] { "FE", "/0" }));
		}
コード例 #12
0
ファイル: Instructions.cs プロジェクト: sharpos/SharpOS
		/// <summary>
		/// CMPXCHG rmreg8,reg8
		/// </summary>
		public void CMPXCHG (R8Type target, R8Type source)
		{
			this.instructions.Add (new Instruction (true, string.Empty, string.Empty, "CMPXCHG", target.ToString () + ", " + source.ToString (), null, target, source, null, new string [] { "0F", "B0", "/r" }));
		}