Function csx64::asm::assemble [−][src]
pub fn assemble(
asm_name: &str,
asm: &mut dyn BufRead,
predefines: Predefines
) -> Result<ObjectFile, AsmError>
Attempts to assemble the asm
source file into an ObjectFile
.
It is not required that asm
be an actual file - it can just be in memory.
asm_name
is the effective name of the source file (the assembly program can access its own file name).
It is recommended that asm_name
be meaningful, as it is might be used by the asm
program to construct error messages, but this is not required.