mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-01 22:00:44 +00:00
24 lines
No EOL
409 B
C#
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();
|
|
}
|
|
}
|
|
}
|
|
} |