io: Fix bank sizes in doc comments
This commit is contained in:
parent
ecde36b995
commit
fb687b9548
@ -156,10 +156,12 @@ pub trait BusAux: BusIO {
|
||||
self.read(0x147)
|
||||
}
|
||||
|
||||
/// Gets the size of the cartridge ROM (in 0x4000 byte banks)
|
||||
fn romsize(&self) -> Option<usize> {
|
||||
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> {
|
||||
self.read(0x149).map(|s| match s {
|
||||
0x02 => 1,
|
||||
|
Loading…
Reference in New Issue
Block a user