Cosmos/source/Indy.IL2CPU/Assembler/x86/Add.cs
mterwoord_cp 5928581f2f
2008-11-07 12:27:08 +00:00

17 lines
No EOL
553 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indy.IL2CPU.Assembler.X86 {
[OpCode(0xFFFFFFFF, "add")]
public class Add: InstructionWithDestinationAndSource {
public override string ToString() {
if (Size == 0) {
return "add " + GetDestinationAsString() + ", " + GetSourceAsString();
} else {
return "add " + SizeToString(Size) + " " + GetDestinationAsString() + ", " + GetSourceAsString();
}
}
}
}