mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-30 12:50:19 +00:00
28 lines
No EOL
826 B
C#
28 lines
No EOL
826 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Indy.IL2CPU.Assembler.X86 {
|
|
public abstract class JumpBase: InstructionWithDestination {
|
|
public override string ToString() {
|
|
// always use near for now
|
|
if (Mnemonic == "call") {
|
|
return Mnemonic + " " + GetDestinationAsString();
|
|
}
|
|
return Mnemonic + " near " + GetDestinationAsString();
|
|
}
|
|
|
|
public string DestinationLabel {
|
|
get {
|
|
if (DestinationRef != null) {
|
|
return DestinationRef.Name;
|
|
}
|
|
return String.Empty;
|
|
}
|
|
set {
|
|
DestinationRef = new ElementReference(value);
|
|
}
|
|
}
|
|
}
|
|
} |