basic support for return values

This commit is contained in:
2025-11-22 20:53:49 -07:00
parent 4f837ee974
commit 1706698ffa
2 changed files with 38 additions and 1 deletions

View File

@@ -310,7 +310,7 @@ impl<'a, W: std::io::Write> Compiler<'a, W> {
self.write_output(format!(
"move r{} r{reg} {}",
VariableScope::RETURN_REGISTER,
debug!(self, "returnValue")
debug!(self, "#returnValue")
))?;
}
VariableLocation::Stack(offset) => {