fix unused
This commit is contained in:
parent
9789826cf3
commit
289acd0070
1 changed files with 2 additions and 5 deletions
|
@ -1,10 +1,7 @@
|
||||||
#![feature(exclusive_range_pattern)]
|
#![feature(exclusive_range_pattern)]
|
||||||
|
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use std::{
|
use std::{fs, io};
|
||||||
fs,
|
|
||||||
io::{self, Read, Write},
|
|
||||||
};
|
|
||||||
|
|
||||||
/// Simple program to greet a person
|
/// Simple program to greet a person
|
||||||
#[derive(Parser, Debug)]
|
#[derive(Parser, Debug)]
|
||||||
|
@ -171,7 +168,7 @@ fn main() {
|
||||||
let args = Args::parse();
|
let args = Args::parse();
|
||||||
|
|
||||||
let rom: ROM = fs::read(args.rom).expect("Could not load ROM");
|
let rom: ROM = fs::read(args.rom).expect("Could not load ROM");
|
||||||
let bootrom: ROM = fs::read(args.bootrom).expect("Could not load BootROM");
|
let _bootrom: ROM = fs::read(args.bootrom).expect("Could not load BootROM");
|
||||||
let mut cpu = CPU {
|
let mut cpu = CPU {
|
||||||
memory: Memory::init(rom),
|
memory: Memory::init(rom),
|
||||||
state: State::default(),
|
state: State::default(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue