Skip to content
Snippets Groups Projects
Verified Commit 9d6cacb3 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fix: removed dead code

parent 6089ff90
No related branches found
No related tags found
No related merge requests found
Pipeline #959 passed
......@@ -87,8 +87,8 @@ fn main() {
//game_boy.load_rom_file("../../res/roms.prop/tetris.gb");
//game_boy.load_rom_file("../../res/roms.prop/dr_mario.gb");
//game_boy.load_rom_file("../../res/roms.prop/alleyway.gb");
game_boy.load_rom_file("../../res/roms.prop/super_mario.gb");
//game_boy.load_rom_file("../../res/roms.prop/super_mario_2.gb");
//game_boy.load_rom_file("../../res/roms.prop/super_mario.gb");
game_boy.load_rom_file("../../res/roms.prop/super_mario_2.gb");
//game_boy.load_rom_file("../../res/roms/firstwhite.gb");
//game_boy.load_rom_file("../../res/roms/opus5.gb");
......
......@@ -33,32 +33,6 @@ pub struct Cpu {
impl Cpu {
pub fn new(mmu: Mmu) -> Self {
let mut implemented = 0;
let mut implemented_ext = 0;
for instruction in INSTRUCTIONS {
if instruction.2 != "! UNIMP !" {
implemented += 1;
}
}
for instruction in EXTENDED {
if instruction.2 != "! UNIMP !" {
implemented_ext += 1;
}
}
debugln!(
"Implemented {}/{} instructions",
implemented,
INSTRUCTIONS.len()
);
debugln!(
"Implemented {}/{} extended instructions",
implemented_ext,
EXTENDED.len()
);
Self {
pc: 0x0,
sp: 0x0,
......
......@@ -4,8 +4,6 @@ use std::{
fmt::{Display, Formatter},
};
use crate::debugln;
#[cfg(feature = "wasm")]
use wasm_bindgen::prelude::*;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment