summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 974ff5c..0d79c33 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -3,8 +3,10 @@ use std::io::prelude::*;
use std::{thread, time};
use std::thread::sleep;
use std::sync::{Arc, Mutex, Condvar};
+use std::string::String;
mod core;
+mod ram;
use self::core::Core;
fn core_worker(mut core: Core, should_stop: &Mutex<bool>, cvar: &Condvar) {
@@ -42,10 +44,11 @@ fn cli_controller(asyncpair: Arc<(Mutex<bool>, Condvar)>) {
}
fn main() {
- let core = Core::new();
let asyncpair = Arc::new((Mutex::new(false), Condvar::new()));
let asyncpair2 = asyncpair.clone();
+ let core = Core::with_ram_from_hex(String::from(":0300000075800008\n:00000001FF\n"));
+
thread::spawn(move || {
let (ref should_stop, ref condvar) = *asyncpair2;
core_worker(core, should_stop, condvar);