Reducing some warnings

This commit is contained in:
Franco Colmenarez 2021-10-20 18:24:13 -05:00
parent 758772200f
commit d2bf668bdc
2 changed files with 1 additions and 4 deletions

View File

@ -31,7 +31,6 @@ impl MemoryMap {
0xFF00..=0xFF7F => Self::IORegisters, 0xFF00..=0xFF7F => Self::IORegisters,
0xFF80..=0xFFFE => Self::HighRAM, 0xFF80..=0xFFFE => Self::HighRAM,
0xFFFF => Self::InterruptEnableRegister, 0xFFFF => Self::InterruptEnableRegister,
_ => Self::BankZero,
} }
} }
} }

View File

@ -6,7 +6,6 @@ use crate::utils::{
add_half_carry, add_half_carry,
sub_half_carry, sub_half_carry,
add_half_carry_16bit, add_half_carry_16bit,
sub_half_carry_16bit,
}; };
use crate::bus::Bus; use crate::bus::Bus;
@ -175,6 +174,7 @@ impl Registers {
} }
#[derive(Debug)] #[derive(Debug)]
#[allow(non_camel_case_types)]
pub enum OpcodeParameter { pub enum OpcodeParameter {
Register(Register), Register(Register),
Register_U8(Register, u8), Register_U8(Register, u8),
@ -713,8 +713,6 @@ impl OpcodeParameterBytes {
0xFD => (Opcode::PrefixCB(Box::new(Opcode::SET(BitIndex::I7, Register::L))), Cycles(2)), 0xFD => (Opcode::PrefixCB(Box::new(Opcode::SET(BitIndex::I7, Register::L))), Cycles(2)),
0xFE => (Opcode::PrefixCB(Box::new(Opcode::SET(BitIndex::I7, Register::HL))), Cycles(4)), 0xFE => (Opcode::PrefixCB(Box::new(Opcode::SET(BitIndex::I7, Register::HL))), Cycles(4)),
0xFF => (Opcode::PrefixCB(Box::new(Opcode::SET(BitIndex::I7, Register::A))), Cycles(2)), 0xFF => (Opcode::PrefixCB(Box::new(Opcode::SET(BitIndex::I7, Register::A))), Cycles(2)),
_ => (Opcode::IllegalInstruction, Cycles(2)),
}, },
0xC3 => (Opcode::JP(OpcodeParameter::U16(two_byte_param)), Cycles(4)), 0xC3 => (Opcode::JP(OpcodeParameter::U16(two_byte_param)), Cycles(4)),
0xC2 => (Opcode::JP(OpcodeParameter::FlagRegisterReset_U16(FlagRegister::Zero, two_byte_param)), Cycles(3)), 0xC2 => (Opcode::JP(OpcodeParameter::FlagRegisterReset_U16(FlagRegister::Zero, two_byte_param)), Cycles(3)),