[−][src]Module cpclib_asm::assembler
Production of the bytecodes from the tokens.
Structs
Env | Environment of the assembly |
Functions
absolute_to_relative | Converts an absolute address to a relative one (relative to $) |
assemble_align | Assemble align directive. It can only work if current address is known... |
assemble_db_or_dw | Assemble DB or DW directive |
assemble_defs | Assemble DEFS directive |
assemble_opcode | Assemble an opcode and returns the generated bytes or the error message if it is impossible to assemblea. We assum the opcode is properlt coded. Panic occurs if it is not the case |
visit_repeat | When visiting a repetition, we unroll the loop and stream the tokens |
visit_stableticker | Manage the stable ticker stuff. |
visit_token | TODO org is a directive, not an opcode => need to change that |
visit_tokens | Deprecated Visit the tokens during a single pass. Is deprecated in favor to the mulitpass version |
visit_tokens_all_passes | Visit the tokens during several passes without providing a specific symbol table. |
visit_tokens_all_passes_with_options | Visit the tokens during several passes by providing a specific symbol table. |
visit_tokens_one_pass | Assemble the tokens doing one pass only (so symbols are not properly treated) |
Type Definitions
Bytes |