21 lines
481 B
Rust
21 lines
481 B
Rust
use std::fs;
|
|
|
|
fn main() {
|
|
println!("Taxation is Theft");
|
|
|
|
// let opts = CliOptions::parse();
|
|
let path = "/home/tmerritt/Projects/mos6502/resources/test/periph/at28c256/checksum.bin";
|
|
let bytes = match fs::read(path) {
|
|
Ok(bytes) => {
|
|
println!("Read {} bytes.", bytes.len());
|
|
bytes
|
|
},
|
|
Err(e) => {
|
|
eprintln!("FAIL to read rom.");
|
|
panic!("No rom no run.");
|
|
vec![]
|
|
}
|
|
};
|
|
|
|
|
|
} |