port some aoc solutions to zern

This commit is contained in:
2025-12-21 14:26:12 +01:00
parent ada570c84e
commit 7f93599f34
7 changed files with 302 additions and 5 deletions

View File

@@ -87,11 +87,7 @@ impl CodegenX86_64 {
}
pub fn get_output(&self) -> String {
format!(
"section .data
{}{}",
self.data_section, self.output
)
format!("section .data\n{}{}", self.data_section, self.output)
}
pub fn emit_prologue(&mut self) -> Result<(), ZernError> {