mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 05:52:11 +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("fucom")]
|
|
public class FloatUCompare : InstructionWithDestinationAndSize
|
|
{
|
|
public static void InitializeEncodingData(Instruction.InstructionData aData)
|
|
{
|
|
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption
|
|
{
|
|
OpCode = new byte[] { 0xDD, 0xE0 },
|
|
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, 0xE1 },
|
|
NeedsModRMByte = true,
|
|
InitialModRMByteValue = 2,
|
|
DestinationImmediate = false,
|
|
DestinationMemory = false,
|
|
DestinationReg = null
|
|
});
|
|
}
|
|
}
|
|
} |