Cosmos/source/Indy.IL2CPU.Assembler.X86/386AndUp/SignExtendAX.cs
Dokugogagoji_cp 2671caa304 Starting divisions per ISA
Added 80x86 stub clases for newer instructions
2008-08-10 09:45:24 +00:00

29 lines
No EOL
509 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indy.IL2CPU.Assembler.X86
{
[OpCode(0xFFFFFFFF, "cdq")]
public class SignExtendAX : Instruction
{
private int mOldSize;
public SignExtendAX(int aOldSize)
{
mOldSize = aOldSize;
}
public override string ToString()
{
switch (mOldSize)
{
case 4:
return "cdq";
case 2:
return "cwd";
default:
throw new NotSupportedException();
}
}
}
}