mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 22:12:25 +00:00
29 lines
1.1 KiB
C#
29 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.IL2CPU.X86.x87
|
|
{
|
|
[OpCode("fxch")]
|
|
public class FloatXchg : InstructionWithDestination
|
|
{
|
|
public static void InitializeEncodingData(Instruction.InstructionData aData)
|
|
{
|
|
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption {
|
|
DestinationMemory = false,
|
|
DestinationImmediate = false,
|
|
OpCode = new byte[] { 0xD9, 0xC8 },
|
|
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[] { 0xD9, 0xC9 },
|
|
DestinationMemory = false,
|
|
DestinationImmediate = false,
|
|
DestinationReg = null
|
|
});
|
|
}
|
|
|
|
}
|
|
}
|