Public Methods |
|
| AssemblerImp () |
| | constructor.
|
|
| ~AssemblerImp () |
| | destructor.
|
|
template<class T> Label | allocData (const T &data) |
|
Label | allocData (const char *szString) |
|
Label | allocData (const string &str) |
|
Label | allocLabel () |
| | allocate a code label.
|
|
Label | allocBSS (unsigned long size) |
| | allocate a bss label.
|
|
Label | allocVariable (const Type &type,const char *name) |
|
void | setLabel (const Label &label) |
| | define the location of a allocated label.
|
|
StackLabel | getStackLabel ()const |
|
StackLabel | getBaseLabel ()const |
|
void | addOpcode (long opcode,long data=0) throw (bad_alloc) |
| | add a standard assembler command.
|
|
void | addCommand (long opcode) throw (bad_alloc) |
|
void | addCommand (long opcode,const string &data) throw (bad_alloc) |
|
void | addCommand (long opcode,long data) throw (bad_alloc) |
|
void | addCommand (long opcode,bool data) throw (bad_alloc) |
|
void | addCommand (long opcode,double data) throw (bad_alloc) |
|
void | addCommand (long opcode,const Vector2 &data) throw (bad_alloc) |
|
void | addCommand (long opcode,const Vector3 &data) throw (bad_alloc) |
|
void | addCommand (long opcode,const Color &data) throw (bad_alloc) |
|
void | addCommand (long opcode,const StackLabel &label) throw (bad_alloc) |
|
void | addCommand (long opcode,const Label &label) throw (bad_alloc) |
| | add a assembler command that references (constant initialized) data (load/store).
|
|
ObjectFile* | getObjectFile ()const |
|
void | setObjectFile (ObjectFile *pObjectFile) |
|
void | finalizeObjectFile () |
| | Finalize generation of the ObjectFile.
|
Static Public Methods |
|
long | resolveOpcode_Ixx (const long op1,const long op2,const long op3,const long data,int &data_size) |
|
long | resolveOpcode_Uxx (const long op1,const long op2,const long op3,const long data,int &data_size) |
Protected Methods |
|
CodeSection& | getCodeSection () |
|
const CodeSection& | getCodeSection ()const |
|
void | setCodeSection (CodeSection §ion) |