Cosmos/source/Indy.IL2CPU/Assembler/x86/386AndUp/SignExtendAX.cs
mterwoord_cp f843b15a6c
2008-12-01 06:42:14 +00:00

24 lines
No EOL
409 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 32:
return "cdq";
case 16:
return "cwd";
default:
throw new NotSupportedException();
}
}
}
}