diff --git a/src/vm/memory.rs b/src/vm/memory.rs new file mode 100644 index 0000000000..caa4c75104 --- /dev/null +++ b/src/vm/memory.rs @@ -0,0 +1,13 @@ +mod relocatable; + +std::collections::HashMap; + +struct Memory { + data:HashMap; +} + +impl Memory { + fn get(&self, &addr:relocatable::MaybeRelocatable) -> Option { + Some(self.data[addr]) + } +} diff --git a/src/vm/memory_dict.rs b/src/vm/memory_dict.rs deleted file mode 100644 index 49a4951d64..0000000000 --- a/src/vm/memory_dict.rs +++ /dev/null @@ -1,9 +0,0 @@ -mod relocatable; - -use num_bigint::BigUint; -use relocatable::RelocatableValue -struct MemoryDict { - data: HashMap, - frozen: bool, - relocation_rules: HashMap -}