From 32b7dacc64b70c12096ecb4007465e41f3c2098a Mon Sep 17 00:00:00 2001 From: David Li Date: Tue, 15 Dec 2015 13:38:54 -0500 Subject: Outline the simulator --- src/binary.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/binary.rs (limited to 'src/binary.rs') diff --git a/src/binary.rs b/src/binary.rs new file mode 100644 index 0000000..2564637 --- /dev/null +++ b/src/binary.rs @@ -0,0 +1,15 @@ +pub struct Binary<'a> { + words: &'a [u32], +} + +impl<'a> Binary<'a> { + pub fn new(words: &'a [u32]) -> Binary<'a> { + Binary { + words: words, + } + } + + // pub fn new_from_hex_file() -> Binary<'a> { + + // } +} -- cgit v1.2.3