Remove field is_allocated from MemCell
This commit is contained in:
+1
-6
@@ -18,18 +18,13 @@ use pest::Parser;
|
|||||||
struct MblfParser;
|
struct MblfParser;
|
||||||
|
|
||||||
struct MemCell {
|
struct MemCell {
|
||||||
is_allocated: bool,
|
|
||||||
address: u32,
|
address: u32,
|
||||||
value: u8,
|
value: u8,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl MemCell {
|
impl MemCell {
|
||||||
pub fn allocate(address: u32) -> Self {
|
pub fn allocate(address: u32) -> Self {
|
||||||
Self {
|
Self { address, value: 0 }
|
||||||
is_allocated: true,
|
|
||||||
address,
|
|
||||||
value: 0,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user