35#ifndef TCEASM_CODE_SECTION_CREATOR_HH
36#define TCEASM_CODE_SECTION_CREATOR_HH
45 class InstructionElement;
AssemblyParserDiagnostic * parent_
Place to add warnings during compilation.
UValue immediateIndex_
Immediate index.
void addAnnotationes(TPEF::InstructionElement &instrElem, InternalElement &elem, LabelManager &lables) const
void startNewInstruction()
@ IMMEDIATE
Long immediate assignment.
UValue slotNumber_
Slot number of current move.
void newSection(UValue startAddress)
void addMove(const ParserMove &move)
bool isNextBegin_
Next element is starting element of instruction.
bool isDestinationAlreadyWritten(const InternalElement &elem) const
const TTAMachine::Machine & mach_
MachineResourceManager & resources_
TPEF Resources and strings.
static const UValue CODE_RELOC_SIZE
Bitwidth of immediate value containing address to relocate.
InternalSection internalSection_
Internal representation of code section.
void finalize(TPEF::Binary &tpef, LabelManager &labels)
UValue guardUnit
TPEF Resource section unit id of guard register or port.
UValue srcUnit
TPEF Resource section unit id of register or port.
bool isInverted
Is guard inverted.
UValue srcIndex
TPEF Resource section operand id or register number.
ElementType type
Type of move.
TPEF::MoveElement::FieldType guardType
Guard type.
UValue slot
Bus slot number.
TPEF::MoveElement::FieldType srcType
Source type.
std::vector< Annotation > annotationes
Annotations for the element.
UValue asmLineNumber
Line number where in source code this move is located.
TPEF::MoveElement::FieldType dstType
Destination type.
LiteralOrExpression immValue
If source is immediate, the value.
UValue dstIndex
TPEF Resource section operand id or register number.
UValue dstUnit
TPEF Resource section unit id of register or port.
UValue guardIndex
TPEF Resource section operand id or register number.
bool isBegin
Is first move of an instruction.
bool isGuarded
Is guarded move.
std::vector< InternalElement > elements
Elements of the section.
UValue startAddress
Start address of the section.