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

feat: small interrupt optimization

parent 253fa6f7
No related branches found
No related tags found
1 merge request!21Initial working version of Audio CH4
Pipeline #2398 passed
...@@ -127,7 +127,7 @@ impl Cpu { ...@@ -127,7 +127,7 @@ impl Cpu {
self.halted = false; self.halted = false;
} }
if self.ime { if self.ime && self.mmu.ie != 0x00 {
// @TODO aggregate all of this interrupts in the MMU, as there's // @TODO aggregate all of this interrupts in the MMU, as there's
// a lot of redundant code involved in here which complicates the // a lot of redundant code involved in here which complicates the
// readability and maybe performance of this code // readability and maybe performance of this code
......
...@@ -115,7 +115,7 @@ impl Pad { ...@@ -115,7 +115,7 @@ impl Pad {
} }
// signals that a JoyPad interrupt is pending to be // signals that a JoyPad interrupt is pending to be
// handled as a key pressed has been done // handled as a key press has been performed
self.int_pad = true; self.int_pad = true;
} }
......
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