mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 14:02:19 +00:00
30 lines
No EOL
1.1 KiB
C#
30 lines
No EOL
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.IL2CPU.X86.x87
|
|
{
|
|
[OpCode("faddp")]
|
|
public class FloatAddAndPop : InstructionWithDestinationAndSource
|
|
{
|
|
public static void InitializeEncodingData(Instruction.InstructionData aData)
|
|
{
|
|
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption
|
|
{
|
|
OpCode = new byte[] { 0xDE, 0xC0 },
|
|
|
|
});
|
|
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption
|
|
{
|
|
OpCode = new byte[] { 0xDE, 0xC1 },
|
|
SourceReg = RegistersEnum.ST0,
|
|
DestinationReg = RegistersEnum.ST0 | RegistersEnum.ST1 | RegistersEnum.ST2 | RegistersEnum.ST3 | RegistersEnum.ST4 | RegistersEnum.ST5 | RegistersEnum.ST6 | RegistersEnum.ST7,
|
|
SourceImmediate = false,
|
|
SourceMemory = false,
|
|
DestinationMemory = false,
|
|
DestinationImmediate = false
|
|
});
|
|
}
|
|
}
|
|
} |