lc3_vm 0.1.0

LC-3 (Little Computer 3) VM implemented in Rust. Ideally, it will run any LC-3 assembly program.
Documentation
1
2
3
4
5
6
7
8
9
use libc::c_int;
extern "C" {
    fn getchar() -> c_int;
}

/// `get_char` calls external (C) function getchar using libc.
pub fn get_char() -> i32 {
    unsafe { getchar() }
}