finished initial interrupts implementation
This commit is contained in:
@@ -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!("------------------------");
|
||||
|
||||
Reference in New Issue
Block a user