Cosmos/source/Indy.IL2CPU/Assembler/x86/386AndUp/SignExtendAX.cs
mterwoord_cp fbd371a4ec
2008-12-25 08:23:12 +00:00

26 lines
No EOL
466 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 "cwde";
case 8:
return "cbw";
default:
throw new NotSupportedException();
}
}
}
}