Cosmos/source2/IL2PCU/Cosmos.IL2CPU.X86/X86/x87/IntStoreAndPop.cs

57 lines
2.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cosmos.IL2CPU.X86.x87
{
[OpCode("fistp")]
public class IntStoreAndPop : InstructionWithDestinationAndSize
{
public static void InitializeEncodingData(Instruction.InstructionData aData)
{
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption
{
OpCode = new byte[] { 0xDF },
NeedsModRMByte = true,
InitialModRMByteValue = 3,
SourceImmediate = false,
SourceMemory = false,
SourceReg = null,
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 = 3,
SourceImmediate = false,
SourceMemory = false,
SourceReg = null,
DestinationMemory = true,
DestinationImmediate = false,
DestinationReg = null,
AllowedSizes = InstructionSizes.DWord,
DefaultSize = InstructionSize.DWord
});
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption
{
OpCode = new byte[] { 0xDF },
NeedsModRMByte = true,
InitialModRMByteValue = 7,
SourceImmediate = false,
SourceMemory = false,
SourceReg = null,
DestinationMemory = true,
DestinationImmediate = false,
DestinationReg = null,
AllowedSizes = InstructionSizes.QWord,
DefaultSize = InstructionSize.QWord
});
}
}
}