Remove field is_allocated from MemCell

This commit is contained in:
2022-01-05 12:58:49 +01:00
committed by Raymon Zutekouw
parent 85cf8696db
commit 6abc8be2c6
+1 -6
View File
@@ -18,18 +18,13 @@ use pest::Parser;
struct MblfParser;
struct MemCell {
is_allocated: bool,
address: u32,
value: u8,
}
impl MemCell {
pub fn allocate(address: u32) -> Self {
Self {
is_allocated: true,
address,
value: 0,
}
Self { address, value: 0 }
}
}