Cosmos/source/Indy.IL2CPU/Assembler/x86/JumpToSegment.cs
mterwoord_cp 647b6c5bba
2008-11-29 18:46:04 +00:00

35 lines
No EOL
858 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indy.IL2CPU.Assembler.X86 {
[OpCode("jmp")]
public class JumpToSegment: Instruction {
public ElementReference DestinationRef {
get;
set;
}
public ushort Segment {
get;
set;
}
public override string ToString() {
return "jmp " + Segment + ":" + DestinationRef.ToString();
}
public string DestinationLabel {
get {
if (DestinationRef != null) {
return DestinationRef.Name;
}
return String.Empty;
}
set {
DestinationRef = new ElementReference(value);
}
}
}
}