tangled
alpha
login
or
join now
tjh.dev
/
um32
1
fork
atom
Implementation of the UM-32 "Universal Machine" as described by the
Cult of the Bound Variable
1
fork
atom
overview
issues
pulls
pipelines
return `self` from `run()`
tjh
1 year ago
81d71a38
3fd5707a
+3
-1
1 changed file
expand all
collapse all
unified
split
src
main.rs
+3
-1
src/main.rs
···
82
82
}
83
83
84
84
/// Begins the spin-cycle of the universal machine.
85
85
-
pub fn run(mut self) {
85
85
+
pub fn run(mut self) -> Self {
86
86
#[cfg(feature = "timing")]
87
87
let start = Instant::now();
88
88
···
268
268
269
269
#[cfg(feature = "timing")]
270
270
eprintln!("um complete: {:?}", start.elapsed());
271
271
+
272
272
+
self
271
273
}
272
274
273
275
/// Loads the value from the specified register.