holey-bytes/hbasm/src/main.rs

9 lines
259 B
Rust
Raw Normal View History

2023-10-27 20:29:02 -05:00
use std::{io::stdout, path::PathBuf};
2023-10-27 20:29:02 -05:00
fn main() -> Result<(), Box<dyn std::error::Error>> {
let path = PathBuf::from(std::env::args().nth(1).ok_or("Missing path")?);
hbasm::assembler(&mut stdout(), |engine| engine.run_file(path))?;
Ok(())
}