chore: inline some functions
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
@@ -64,10 +64,12 @@ impl Bus {
|
||||
self.boot.is_some()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub(crate) fn clock(&mut self) {
|
||||
self.tick(4);
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn tick(&mut self, limit: u8) {
|
||||
for _ in 0..limit {
|
||||
self.timer.tick();
|
||||
@@ -83,6 +85,11 @@ impl Bus {
|
||||
self.oam_write_byte(dest_addr, byte);
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub(crate) fn joyp_mut(&mut self) -> &mut Joypad {
|
||||
&mut self.joypad
|
||||
}
|
||||
}
|
||||
|
||||
impl Bus {
|
||||
|
Reference in New Issue
Block a user