Cosmos/source/Indy.IL2CPU.Assembler.X86/MoveAndZeroExtend.cs
LostTheBlack_cp 1af5ac6f34 [+] MoveAndSignExtend & MoveAndZeroExtend added to assmebler
[+] SignExtendAX to handle AX -> DX:AX & EAX -> EDX:EAX
[+] Conversion to int8
[*] Fixed conversion to int16
[*] Fixed conversion to int64
[+] Added conversion
[*] AddWithOverflow code fixed.
2008-04-18 13:29:13 +00:00

23 lines
494 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indy.IL2CPU.Assembler.X86
{
[OpCode(0xFFFFFFFF, "movzx")]
public class MoveAndZeroExtend : Instruction
{
private string mDest;
private string mSource;
public MoveAndZeroExtend(string aDest, string aSource)
{
mDest = aDest;
mSource = aSource;
}
public override string ToString()
{
return string.Format("movzx {0}, {1}", mDest, mSource);
}
}
}