mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 05:52:11 +00:00
48 lines
1.8 KiB
C#
48 lines
1.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.IL2CPU.X86.x87
|
|
{
|
|
[OpCode("fisttp")]
|
|
public class IntStoreWithTrunc : InstructionWithDestinationAndSize
|
|
{
|
|
public static void InitializeEncodingData(Instruction.InstructionData aData)
|
|
{
|
|
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption
|
|
{
|
|
OpCode = new byte[] { 0xDF },
|
|
NeedsModRMByte = true,
|
|
InitialModRMByteValue = 1,
|
|
DestinationMemory = true,
|
|
DestinationImmediate = false,
|
|
DestinationReg = null,
|
|
AllowedSizes = InstructionSizes.Word,
|
|
DefaultSize = InstructionSize.Word
|
|
});
|
|
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption
|
|
{
|
|
OpCode = new byte[] { 0xDB },
|
|
NeedsModRMByte = true,
|
|
InitialModRMByteValue = 1,
|
|
DestinationMemory = true,
|
|
DestinationImmediate = false,
|
|
DestinationReg = null,
|
|
AllowedSizes = InstructionSizes.DWord,
|
|
DefaultSize = InstructionSize.DWord
|
|
});
|
|
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption
|
|
{
|
|
OpCode = new byte[] { 0xDD },
|
|
NeedsModRMByte = true,
|
|
InitialModRMByteValue = 1,
|
|
DestinationMemory = true,
|
|
DestinationImmediate = false,
|
|
DestinationReg = null,
|
|
AllowedSizes = InstructionSizes.QWord,
|
|
DefaultSize = InstructionSize.QWord
|
|
});
|
|
}
|
|
}
|
|
}
|