Cosmos/source2/Compiler/Cosmos.Compiler.Assembler.X86/ConditionalJump.cs
2010-08-05 17:11:04 +00:00

20 lines
No EOL
610 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cosmos.Compiler.Assembler.X86 {
[OpCode("jcc")]
public class ConditionalJump: JumpBase, IInstructionWithCondition {
public ConditionalTestEnum Condition {
get;
set;
}
public override void WriteText( Cosmos.Compiler.Assembler.Assembler aAssembler, System.IO.TextWriter aOutput )
{
mMnemonic = String.Intern("j" + Condition.GetMnemonic() + " near");
base.WriteText(aAssembler, aOutput);
}
}
}