mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-29 20:30:44 +00:00
27 lines
No EOL
912 B
C#
27 lines
No EOL
912 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Indy.IL2CPU.Assembler {
|
|
public abstract class BaseAssemblerElement {
|
|
/// <summary>
|
|
/// Gets/sets the address at which the element could start emitting data. Note that if
|
|
/// the element needs any alignment, start address is unaligned, and the element should
|
|
/// do the alignment itself. ActualAddress is used for referencing the actual address.
|
|
/// </summary>
|
|
public virtual ulong? StartAddress {
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public abstract ulong? ActualAddress {
|
|
get;
|
|
}
|
|
|
|
public abstract bool DetermineSize(Assembler aAssembler, out ulong aSize);
|
|
|
|
public abstract bool IsComplete(Assembler aAssembler);
|
|
public abstract byte[] GetData(Assembler aAssembler);
|
|
}
|
|
} |