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
change visibility of `conv` module
tjh
1 year ago
ab6e8251
6ca757ba
+3
-5
3 changed files
expand all
collapse all
unified
split
src
bin
uasm.rs
um.rs
lib.rs
+1
-1
src/bin/uasm.rs
···
55
55
}
56
56
_ => {
57
57
let program = std::fs::read(path)?;
58
58
-
Ok(um::bytes_to_program(&program).unwrap())
58
58
+
Ok(um::conv::bytes_to_program(&program).unwrap())
59
59
}
60
60
}
61
61
}
+1
-1
src/bin/um.rs
···
54
54
}
55
55
_ => {
56
56
let program = std::fs::read(path)?;
57
57
-
Ok(um::bytes_to_program(&program).unwrap())
57
57
+
Ok(um::conv::bytes_to_program(&program).unwrap())
58
58
}
59
59
}
60
60
}
+1
-3
src/lib.rs
···
16
16
use std::io::{Read, Write};
17
17
18
18
pub mod asm;
19
19
-
mod conv;
19
19
+
pub mod conv;
20
20
pub mod ops;
21
21
pub mod reg;
22
22
23
23
use ops::Operation;
24
24
use reg::{Page, Register};
25
25
-
26
26
-
pub use conv::*;
27
25
28
26
const SMALLVEC_SIZE: usize = 24;
29
27