pub enum Addressing {
Base8000,
Base8800,
}Expand description
Which 256 slots a tilemap byte names, from LCDC bit 4.
The $8000 and $8800 methods, named as Pan Docs and the wider Game Boy
development community name them. Base8800 is a misnomer kept for that
familiarity: its base pointer is 0x9000, and the index is read as signed,
which is what puts its second half back down in block 1.
Variants§
Base8000
Base 0x8000, index unsigned: blocks 0 and 1. Objects always use this.
Base8800
Base 0x9000, index signed: blocks 2 and 1.
Trait Implementations§
Source§impl Clone for Addressing
impl Clone for Addressing
Source§fn clone(&self) -> Addressing
fn clone(&self) -> Addressing
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Addressing
Source§impl Debug for Addressing
impl Debug for Addressing
impl Eq for Addressing
Source§impl PartialEq for Addressing
impl PartialEq for Addressing
impl StructuralPartialEq for Addressing
Auto Trait Implementations§
impl BankSafe for Addressing
impl Freeze for Addressing
impl RefUnwindSafe for Addressing
impl Send for Addressing
impl Sync for Addressing
impl Unpin for Addressing
impl UnsafeUnpin for Addressing
impl UnwindSafe for Addressing
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more