Expand description
Invoke the various passes of the assembler.
Re-exportsยง
use std::collections::BTreeMap;๐use std::ffi::OsStr;๐use std::fs::OpenOptions;๐use std::io::BufReader;๐use std::io::BufWriter;๐use std::io::Read;๐use std::path::Path;๐use std::path::PathBuf;๐use chumsky::error::Rich;๐use tracing::Level;๐use tracing::event;๐use tracing::event;๐use tracing::span;๐use tracing::span;๐use super::ast::Origin;๐use super::ast::RcUpdater;๐use super::collections::OneOrMore;๐use super::directive::Directive;๐use super::eval::Evaluate;๐use super::eval::HereValue;๐use super::eval::ScopeIdentifier;๐use super::eval::EvaluationContext;๐use super::eval::RcBlock;๐use super::eval::extract_final_equalities;๐use super::lexer;๐use super::listing::Listing;๐use super::listing::ListingLine;๐use super::listing::ListingWithBody;๐use super::manuscript::SourceFile;๐use super::memorymap::BlockPosition;๐use super::memorymap::MemoryMap;๐use super::memorymap::RcAllocator;๐use super::memorymap::RcWordAllocationFailure;๐use super::memorymap::RcWordSource;๐use super::parser::parse_source_file;๐use super::source::Source;๐use super::source::LineAndColumn;๐use super::source::WithLocation;๐use super::span::Span;๐use super::span::Spanned;๐use super::state::NumeralMode;๐use super::symbol::SymbolName;๐use super::symtab::ExplicitSymbolTable;๐use super::symtab::FinalSymbolDefinition;๐use super::symtab::FinalSymbolTable;๐use super::symtab::FinalSymbolType;๐use super::symtab::ImplicitSymbolTable;๐use super::symtab::IndexRegisterAssigner;๐use super::types::AssemblerFailure;๐use super::types::IoAction;๐use super::types::IoFailed;๐use super::types::IoTarget;๐use super::types::ProgramError;๐use base::prelude::Address;๐use base::prelude::IndexBy;๐use base::prelude::Unsigned18Bit;๐use base::prelude::Unsigned36Bit;๐use base::subword;๐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
BinaryChunkinstances 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
Stringinstance; the output quotes control characters and backslashes. - fail_
with_ ๐diagnostics - Convert raw parse errors into instances of
ProgramError. - initial_
symbol_ ๐table