Macro assemble6502

Source
macro_rules! assemble6502 {
    ( {
        start: $start:expr,
        code: {
            $($tokens:tt)*
        }
    } ) => { ... };
    ( $($tokens:tt)* ) => { ... };
}
Expand description

Entry point for the macro-based MOS6502 assembler.

Expands to a fixed-size u8 array containing the assembled machine code.

Note: Any errors in the assembly will be reported as inscrutable expansion errors. This is a limitation in Rust’s current macro implementation.