io: Fix bank sizes in doc comments

This commit is contained in:
John 2024-07-09 01:44:02 -05:00
parent ecde36b995
commit fb687b9548

View File

@ -156,10 +156,12 @@ pub trait BusAux: BusIO {
self.read(0x147) self.read(0x147)
} }
/// Gets the size of the cartridge ROM (in 0x4000 byte banks)
fn romsize(&self) -> Option<usize> { fn romsize(&self) -> Option<usize> {
self.read(0x148).map(|s| 1usize.wrapping_shl(s as u32 + 1)) self.read(0x148).map(|s| 1usize.wrapping_shl(s as u32 + 1))
} }
/// Gets the size of the cartridge RAM (in 0x2000 byte banks)
fn ramsize(&self) -> Option<usize> { fn ramsize(&self) -> Option<usize> {
self.read(0x149).map(|s| match s { self.read(0x149).map(|s| match s {
0x02 => 1, 0x02 => 1,