Finally generating code

This commit is contained in:
2022-04-01 22:00:18 -05:00
parent 150dda5c8e
commit 4ef4efcc11
3 changed files with 208 additions and 1 deletions
+6
View File
@@ -56,4 +56,10 @@ impl<'a> VASMLine<'a> {
_ => None,
}
}
pub fn zero_length(&self) -> bool {
matches!(
self,
VASMLine::Org(_, _) | VASMLine::Equ(_, _) | VASMLine::LabelDef(_)
)
}
}