Remove field is_allocated from MemCell

Raymon Zutekouw 4 years ago committed by Raymon Zutekouw
parent bb63782711
commit 756e21e7fd
No known key found for this signature in database
GPG Key ID: E62222846283925
  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