finished initial interrupts implementation

This commit is contained in:
2025-06-25 00:13:55 +01:00
parent 92c4660a4d
commit 82b99c127c
5 changed files with 54 additions and 18 deletions
+1 -4
View File
@@ -11,10 +11,7 @@ pub fn codegen(nodes: Vec<Node>) -> Result<Vec<Instruction>, AssembleError> {
let mut instructions = vec![];
for node in nodes {
instructions.push(
build_instruction(&node)
.unwrap_or_else(|_| panic!("Failed to build instruction: {node:?}")),
);
instructions.push(build_instruction(&node)?);
}
println!("------------------------");