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

docs: new docstring added

parent 9ec5b38d
No related branches found
No related tags found
No related merge requests found
......@@ -178,6 +178,9 @@ impl Ppu {
}
}
/// Updates the tile structure with the value that has
/// just been written to a location on the VRAM associated
/// with tiles.
pub fn update_tile(&mut self, addr: u16, _value: u8) {
let addr = addr & 0x1ffe;
let tile_index = (addr >> 4) & 0x01ff;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment