mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-11 10:41:33 +00:00
21 lines
No EOL
651 B
C#
21 lines
No EOL
651 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.Compiler.Assembler.X86 {
|
|
[OpCode("ret")]
|
|
public class Return: InstructionWithDestination {
|
|
public static void InitializeEncodingData(Instruction.InstructionData aData) {
|
|
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption {
|
|
OpCode = new byte[] { 0xC2 },
|
|
DestinationImmediate=true,
|
|
DestinationImmediateSize=InstructionSize.Word
|
|
});
|
|
}
|
|
|
|
public Return() {
|
|
DestinationValue = 0;
|
|
}
|
|
}
|
|
} |