mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 21:08:51 +00:00
22 lines
No EOL
577 B
C#
22 lines
No EOL
577 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, "sub")]
|
|
public class Sub: Instruction {
|
|
public readonly string Destination, Source;
|
|
|
|
public Sub(string aDestination, string aSource) {
|
|
Destination = aDestination;
|
|
Source = aSource;
|
|
}
|
|
|
|
public override string ToString() {
|
|
return string.Format("sub {0}, {1}", Destination, Source);
|
|
}
|
|
}
|
|
} |