mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-29 20:30:44 +00:00
21 lines
No EOL
732 B
C#
21 lines
No EOL
732 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Indy.IL2CPU.Assembler.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 string ToString() {
|
|
//if (Number == INTO) return "into";
|
|
return "int " + DestinationValue;
|
|
}
|
|
}
|
|
} |