Remove field is_allocated from MemCell

master
Raymon Zutekouw 2 years ago
parent b05b286d57
commit 0bdd6364a7
No known key found for this signature in database
GPG Key ID: 1E9BCC39EDD1DD53
  1. 7
      src/main.rs

@ -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 }
}
}

Loading…
Cancel
Save