Skip to main content

assemble

Function assemble 

pub fn assemble(source: &str) -> Result<Program, AsmError>
Expand description

Assembles source text.

Two passes. The first records where each label lands; the second emits instructions and resolves label references. One pass is insufficient because a forward branch names a label defined later.