mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 05:52:11 +00:00
44 lines
1.7 KiB
C#
44 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.IL2CPU.X86.x87
|
|
{
|
|
[OpCode("fstp")]
|
|
public class FloatStoreAndPop : InstructionWithDestinationAndSize
|
|
{
|
|
public static void InitializeEncodingData(Instruction.InstructionData aData)
|
|
{
|
|
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption
|
|
{
|
|
OpCode = new byte[] { 0xD9 },
|
|
NeedsModRMByte = true,
|
|
InitialModRMByteValue = 3,
|
|
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 = 3,
|
|
DestinationMemory = true,
|
|
DestinationImmediate = false,
|
|
DestinationReg = null,
|
|
AllowedSizes = InstructionSizes.QWord,
|
|
DefaultSize = InstructionSize.QWord
|
|
});
|
|
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption
|
|
{
|
|
OpCode = new byte[] { 0xDD, 0xD8 },
|
|
DestinationMemory = true,
|
|
DestinationImmediate = false,
|
|
DestinationReg = RegistersEnum.ST0 | RegistersEnum.ST1 | RegistersEnum.ST2 | RegistersEnum.ST3 | RegistersEnum.ST4 | RegistersEnum.ST5 | RegistersEnum.ST6 | RegistersEnum.ST7
|
|
});
|
|
}
|
|
}
|
|
}
|