aboutsummaryrefslogtreecommitdiff
path: root/src/binary.rs
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2015-12-15 13:38:54 -0500
committerDavid Li <li.davidm96@gmail.com>2015-12-15 13:38:58 -0500
commit32b7dacc64b70c12096ecb4007465e41f3c2098a (patch)
tree91e1e1d3a11351c92ae8591d3fcac5d8361c7af1 /src/binary.rs
Outline the simulator
Diffstat (limited to 'src/binary.rs')
-rw-r--r--src/binary.rs15
1 files changed, 15 insertions, 0 deletions
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> {
+
+ // }
+}