Refactor joypad and implement sprite fetching. Tetris is now playable

This commit is contained in:
2021-11-05 00:19:47 -05:00
parent b7236e862a
commit 5d488d4fa6
6 changed files with 180 additions and 38 deletions
+1 -1
View File
@@ -911,7 +911,7 @@ impl CPU {
}
pub fn handle_interrupt(&mut self, bus: &mut Bus, interrupt: Interrupt) {
println!("Interrupt: {:?}", interrupt);
// println!("Interrupt: {:?}", interrupt);
bus.set_interrupt_flag(interrupt, false);
self.ime = false;
self.registers.decrement(Register::PC, 3);