Cosmos/source/Indy.IL2CPU/Assembler/x86/Add.cs
mterwoord_cp ffc211c161
2008-11-08 09:00:58 +00:00

17 lines
No EOL
560 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: InstructionWithDestinationAndSourceAndSize {
public override string ToString() {
if (Size == 0) {
return "add " + GetDestinationAsString() + ", " + GetSourceAsString();
} else {
return "add " + SizeToString(Size) + " " + GetDestinationAsString() + ", " + GetSourceAsString();
}
}
}
}