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§
- Charset
Encoding - Env
- Environment of the assembly
- EnvOptions
Enums§
- Assembling
Pass - Several passes are needed to properly assemble a source file.
- DbLike
Kind
Traits§
- EnvEvent
Observer - 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_
tokens Deprecated - 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)