Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
boytacean
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
João Magalhães
boytacean
Commits
400bf7b1
Verified
Commit
400bf7b1
authored
1 year ago
by
João Magalhães
Browse files
Options
Downloads
Patches
Plain Diff
feat: small interrupt optimization
parent
253fa6f7
No related branches found
No related tags found
1 merge request
!21
Initial working version of Audio CH4
Pipeline
#2398
passed
1 year ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cpu.rs
+1
-1
1 addition, 1 deletion
src/cpu.rs
src/pad.rs
+1
-1
1 addition, 1 deletion
src/pad.rs
with
2 additions
and
2 deletions
src/cpu.rs
+
1
−
1
View file @
400bf7b1
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/pad.rs
+
1
−
1
View file @
400bf7b1
...
@@ -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 press
ed
has been
done
// handled as a key press has been
performed
self
.int_pad
=
true
;
self
.int_pad
=
true
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment