mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 22:12:25 +00:00
[+] 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.
23 lines
No EOL
492 B
C#
23 lines
No EOL
492 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Indy.IL2CPU.Assembler.X86
|
|
{
|
|
[OpCode(0xFFFFFFFF, "movsx")]
|
|
public class MoveAndSignExtend : Instruction
|
|
{
|
|
private string mDest;
|
|
private string mSource;
|
|
public MoveAndSignExtend(string aDest, string aSource)
|
|
{
|
|
mDest = aDest;
|
|
mSource = aSource;
|
|
}
|
|
public override string ToString()
|
|
{
|
|
return string.Format("movsx {0}, {1}", mDest, mSource);
|
|
}
|
|
}
|
|
} |