mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 05:52:11 +00:00
22 lines
No EOL
783 B
C#
22 lines
No EOL
783 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.IL2CPU.X86 {
|
|
[OpCode("int")]
|
|
public class Interrupt : InstructionWithDestination {
|
|
public static void InitializeEncodingData(Instruction.InstructionData aData) {
|
|
aData.EncodingOptions.Add(new InstructionData.InstructionEncodingOption {
|
|
OpCode = new byte[] { 0xCD },
|
|
DestinationImmediate=true,
|
|
DestinationImmediateSize=InstructionSize.Byte
|
|
});
|
|
}
|
|
public override void WriteText( Cosmos.IL2CPU.Assembler aAssembler, System.IO.TextWriter aOutput )
|
|
{
|
|
aOutput.Write("int ");
|
|
aOutput.Write(DestinationValue);
|
|
}
|
|
}
|
|
} |