mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 21:08:51 +00:00
21 lines
No EOL
645 B
C#
21 lines
No EOL
645 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Indy.IL2CPU.Assembler.X86 {
|
|
public abstract class JumpBase: Instruction {
|
|
public readonly string Address;
|
|
|
|
protected JumpBase(string aAddress) {
|
|
Address = aAddress;
|
|
if (Address.StartsWith(".")) {
|
|
//string xPrefix = (from item in Assembler.CurrentInstance.Instructions
|
|
// where !Label.GetLabel(item).StartsWith(".")
|
|
// select Label.GetLabel(item)).Last();
|
|
string xPrefix = Label.LastFullLabel;
|
|
Address = xPrefix + "__DOT__" + Address.Substring(1);
|
|
}
|
|
}
|
|
}
|
|
} |