Cosmos/source2/Compiler/Cosmos.Compiler.Assembler.X86/Int3.cs
kudzu_cp bf883e964a
2011-07-18 00:02:27 +00:00

14 lines
No EOL
613 B
C#

namespace Cosmos.Compiler.Assembler.X86 {
// Int 0x01 and Int 0x03 have short hand op codes.
// For Int 0x03, the short version acts differently than the long version.
// Intel and other asms automatically optimize the long mnemonic to the
// short op code. NASM doesn't so we have to issue a seperate op code for it.
// We could optimize our C# code to issue a different ouput for NASM, but there
// are cases where the long form could be preferred. Thus instead we have
// chosen to follow the NASM model in our code.
[OpCode("Int3")]
public class INT3 : Instruction {
}
}