Cosmos/source/Indy.IL2CPU/Assembler/x86/ShiftRight.cs
mterwoord_cp 0d27abe2e7
2008-11-08 10:52:35 +00:00

22 lines
No EOL
579 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indy.IL2CPU.Assembler.X86 {
[OpCode(0xFFFFFFFF, "shr")]
public class ShiftRight: InstructionWithDestination {
public byte? Count {
get;
set;
}
public override string ToString() {
if (Count.HasValue) {
return "shr " + GetDestinationAsString() + ", " + Count.Value.ToString();
} else {
return "shr " + GetDestinationAsString() + ", CL";
}
}
}
}