mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 22:12:25 +00:00
31 lines
No EOL
1.2 KiB
C#
31 lines
No EOL
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.IL2CPU.X86.x87
|
|
{
|
|
[OpCode("fucomp")]
|
|
public class FloatUCompareAndPop : InstructionWithDestinationAndSize
|
|
{
|
|
public static void InitializeEncodingData(Instruction.InstructionData aData)
|
|
{
|
|
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption
|
|
{
|
|
OpCode = new byte[] { 0xDD, 0xE8 },
|
|
DestinationImmediate = false,
|
|
DestinationMemory = false,
|
|
DestinationReg = RegistersEnum.ST0 | RegistersEnum.ST1 | RegistersEnum.ST2 | RegistersEnum.ST3 | RegistersEnum.ST4 | RegistersEnum.ST5 | RegistersEnum.ST6 | RegistersEnum.ST7,
|
|
});
|
|
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption
|
|
{
|
|
OpCode = new byte[] { 0xDD, 0xE9 },
|
|
NeedsModRMByte = true,
|
|
InitialModRMByteValue = 2,
|
|
DestinationImmediate = false,
|
|
DestinationMemory = false,
|
|
DestinationReg = null,
|
|
});
|
|
}
|
|
}
|
|
} |