Cosmos/source/Indy.IL2CPU/Assembler/x86/386AndUp/SignExtendAX.cs
mterwoord_cp 8b8be0c28d
2008-11-29 17:26:44 +00:00

24 lines
No EOL
407 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indy.IL2CPU.Assembler.X86
{
[OpCode("cdq")]
public class SignExtendAX : InstructionWithSize
{
public override string ToString()
{
switch (Size)
{
case 4:
return "cdq";
case 2:
return "cwd";
default:
throw new NotSupportedException();
}
}
}
}