From 32ebeb3baf707df400f311d7489e424e5492ecf2 Mon Sep 17 00:00:00 2001 From: Oxore Date: Sun, 14 Jul 2019 19:49:23 +0300 Subject: Implement ram and instructions --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index f5af35c..974ff5c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,8 @@ use self::core::Core; fn core_worker(mut core: Core, should_stop: &Mutex, cvar: &Condvar) { loop { while false == *should_stop.lock().unwrap() { - println!("step {}", core.step()); + core.step(); + println!("{}", core.op()); sleep(time::Duration::from_millis(1000)); } -- cgit v1.2.3