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

chore: small docs updated

parent abb05ccd
No related branches found
No related tags found
1 merge request!16Support for Game Boy Color (CGB) 😎🖍️
Pipeline #2650 failed
...@@ -8,7 +8,7 @@ use crate::{ ...@@ -8,7 +8,7 @@ use crate::{
ppu::Ppu, ppu::Ppu,
rom::Cartridge, rom::Cartridge,
serial::Serial, serial::Serial,
timer::Timer, timer::Timer, warnln,
}; };
pub const BOOT_SIZE_DMG: usize = 256; pub const BOOT_SIZE_DMG: usize = 256;
...@@ -257,10 +257,10 @@ impl Mmu { ...@@ -257,10 +257,10 @@ impl Mmu {
| if self.pad.int_pad() { 0x10 } else { 0x00 }) | if self.pad.int_pad() { 0x10 } else { 0x00 })
} }
// 0xFF4C - KEY0 (CGB only) // 0xFF4C - KEY0: Compatibility flag (CGB only)
0x4c => self.key0, 0x4c => self.key0,
// 0xFF4D - KEY1 (CGB only) // 0xFF4D - KEY1: Speed switching (CGB only)
0x4d => (false as u8) | ((self.speed as u8) << 7), 0x4d => (false as u8) | ((self.speed as u8) << 7),
// 0xFF50 - Boot active flag // 0xFF50 - Boot active flag
...@@ -346,7 +346,7 @@ impl Mmu { ...@@ -346,7 +346,7 @@ impl Mmu {
self.pad.set_int_pad(value & 0x10 == 0x10); self.pad.set_int_pad(value & 0x10 == 0x10);
} }
// 0xFF4C - KEY0 (CGB only) // 0xFF4C - KEY0: Compatibility flag (CGB only)
0x4c => { 0x4c => {
self.key0 = value; self.key0 = value;
if value == 0x04 { if value == 0x04 {
...@@ -354,8 +354,10 @@ impl Mmu { ...@@ -354,8 +354,10 @@ impl Mmu {
} }
} }
// 0xFF4D - KEY1 (CGB only) // 0xFF4D - KEY1: Speed switching (CGB only)
0x4d => { 0x4d => {
warnln!("Switching speed is not yet implemented");
// @TODO: The switching of CPU speed is not yet // @TODO: The switching of CPU speed is not yet
// implemented and required more work to be done. // implemented and required more work to be done.
// Inclusive the propagation of the speed to the // Inclusive the propagation of the speed to the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment