Module assembler

Module assembler 

Source
Expand description

Production of the bytecodes from the tokens.

Modules§

control
delayed_command
embedded
file
function
list
listing_output
macro
matrix
page_info
processed_token
report
save_command
section
stable_ticker
string
support
symbols_output

Structs§

CharsetEncoding
Env
Environment of the assembly
EnvOptions

Enums§

AssemblingPass
Several passes are needed to properly assemble a source file.
DbLikeKind

Traits§

EnvEventObserver
MyDefault
Visited
Trait to implement for each type of token. it allows to drive the appropriate data vonversion

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_call_jr_or_jp
arg1 contains the tests arg2 contains the information
assemble_defs_item
Assemble DEFS directive
assemble_opcode
Assemble an opcode and returns the generated bytes or the error message if it is impossible to assemblea. We assume the opcode is properlt coded. Panic occurs if it is not the case
visit_located_token
Apply the effect of the localized token. Most of the action is delegated to visit_token. The difference with the standard token is the ability to embed listing
visit_repeat
When visiting a repetition, we unroll the loop and stream the tokens TODO reimplement it in a similar way that the LocatedToken version that is better
visit_stableticker
Manage the stable ticker stuff.
visit_tokensDeprecated
Visit the tokens during a single pass. Is deprecated in favor to the mulitpass version
visit_tokens_all_passes_with_options
Visit the tokens during several passes by providing a specific symbol table. Warning Listing output is only possible for LocatedToken
visit_tokens_one_pass
Assemble the tokens doing one pass only (so symbols are not properly treated)

Type Aliases§

Bytes