Skip to main content

AssemblyOutput

Trait AssemblyOutput 

Source
pub trait AssemblyOutput {
    // Required methods
    fn emit(&mut self, code: &str);
    fn emit_label(&mut self, label: &str);
    fn emit_comment(&mut self, comment: &str);
    fn get_output(&self) -> &str;
    fn clear(&mut self);
    fn emit_line(&mut self, indent: u8, code: &str);
}
Expand description

Assembly output generation trait

Required Methods§

Source

fn emit(&mut self, code: &str)

Emit assembly code

Source

fn emit_label(&mut self, label: &str)

Emit a label

Source

fn emit_comment(&mut self, comment: &str)

Emit a comment

Source

fn get_output(&self) -> &str

Get the generated output

Source

fn clear(&mut self)

Clear the output buffer

Source

fn emit_line(&mut self, indent: u8, code: &str)

Emit formatted line

Implementors§