avrora.syntax.objdump
Class RawModule
java.lang.Object
avrora.syntax.Module
avrora.syntax.objdump.RawModule
- All Implemented Interfaces:
- Context
- public class RawModule
- extends Module
The RawModule
is a subclass of Module
that allows random access when creating a
program from an input source. This is needed since the object dump format is special in that each item it
prints has its own address, and can have multiple sections.
Field Summary |
protected avrora.syntax.objdump.RawModule.Section |
section
|
protected java.util.HashMap |
sectionMap
|
Fields inherited from class avrora.syntax.Module |
caseSensitivity, constants, dataSegment, definitions, eepromSegment, ERROR, labels, newprogram, programSegment, segment, useByteAddresses |
Constructor Summary |
RawModule(boolean cs,
boolean ba)
|
Methods inherited from class avrora.syntax.Module |
addConstant, addDataBytes, addDataDoubleWords, addDataWords, addDefinition, addInstruction, addInstruction, addInstruction, addInstruction, addLabel, addQuotedLabel, addRegisterName, addVariable, align, build, enterDataSegment, enterEEPROMSegment, enterProgramSegment, getRegister, getVariable, includeFile, newOperand, newOperand, reserveBytes, setOrigin |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
section
protected avrora.syntax.objdump.RawModule.Section section
sectionMap
protected java.util.HashMap sectionMap
RawModule
public RawModule(boolean cs,
boolean ba)
newSection
public void newSection(AbstractToken name,
AbstractToken vma,
AbstractToken lma)
enterSection
public void enterSection(AbstractToken sect)
addBytes
public void addBytes(AbstractToken b1,
AbstractToken b2)
addBytes
public void addBytes(AbstractToken b1,
AbstractToken b2,
AbstractToken b3,
AbstractToken b4)
setAddress
public void setAddress(AbstractToken addr)
simplify
protected void simplify(Item i)
- Overrides:
simplify
in class Module