Expand description
Invoke the various passes of the assembler.
Re-exportsยง
pub use output::write_user_program;
Modulesยง
- output ๐
- Generate the output binary, as a tape image file.
Structsยง
- Binary
- The assembled program; a sequence of
BinaryChunk
instances with an optional entry point. - Binary
Chunk - A contiguous sequence of words at some starting address.
- NoRc
Block ๐ - Placeholder for the RC-block which will not allocate words.
- Output
Options - Indicates what kind of output the user wants.
- Pass2
Output ๐ - Output of pass 2 of the assembler.
Enumsยง
- Assembler
Pass1 ๐Or2Output - Describes the result of running the first (and possibly the second) pass of the assembler.
- Directive
Meta Command - Represents the meta commands which are still relevant in the directive. Excludes things like the PUNCH meta command.
Functionsยง
- assemble_
file - Assemble input file, producing a tape image.
- assemble_
nonempty_ ๐input - Assemble a non-empty input.
- assemble_
pass1 ๐ - Pass 1 converts the program source into an abstract syntax representation.
- assemble_
pass2 ๐ - Pass 2 converts the abstract syntax representation into a
Directive
, which is closer to binary code. - assemble_
pass3 ๐ - Pass 3 generates binary code.
- assemble_
source ๐ - Run all the passes of assembly, generating an output-ready
Binary
. - cleanup_
control_ ๐chars - Pass-through a
String
instance; the output quotes control characters and backslashes. - fail_
with_ ๐diagnostics - Convert raw parse errors into instances of
ProgramError
. - initial_
symbol_ ๐table