Cosmos/source/Indy.IL2CPU.Assembler.X86/SubWithCarry.cs
LostTheBlack_cp ea9fcde4ce Int64:
[*] Fixed adding.
[+] Subtraction now works.
2008-03-16 06:44:01 +00:00

26 lines
607 B
C#

using System;
using System.Linq;
namespace Indy.IL2CPU.Assembler.X86
{
/// <summary>
/// Subtracts the source operand from the destination operand and
/// replaces the destination operand with the result.
/// </summary>
[OpCode(0xFFFFFFFF, "sbb")]
public class SubWithCarry : Instruction
{
public readonly string Destination, Source;
public SubWithCarry(string aDestination, string aSource)
{
Destination = aDestination;
Source = aSource;
}
public override string ToString()
{
return string.Format("sbb {0}, {1}", Destination, Source);
}
}
}