|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectavrora.core.Assembler
The Assembler class represents an assembler that is capable of
encoding AVR assembly instructions into binary machine code.
| Constructor Summary | |
Assembler()
|
|
| Method Summary | |
int |
encode(Instr i,
byte[] buffer,
int offset)
The encode() method translates an assembly instruction into
a sequence of bytes and writes them into an array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Assembler()
| Method Detail |
public int encode(Instr i,
byte[] buffer,
int offset)
encode() method translates an assembly instruction into
a sequence of bytes and writes them into an array. This method returns the
number of bytes written into the array, which depends on the size of the
instruction.
i - the instruction to encode into the arraybuffer - an array of bytes into which to encode the instructionoffset - the offset in the buffer to which to write the bytes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||