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
60426b00
Verified
Commit
60426b00
authored
2 years ago
by
João Magalhães
Browse files
Options
Downloads
Patches
Plain Diff
fix: more issues related to bad PPU handling
parent
e0167129
No related branches found
No related tags found
No related merge requests found
Pipeline
#1684
canceled
2 years ago
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-1
1 addition, 1 deletion
CHANGELOG.md
src/ppu.rs
+2
-2
2 additions, 2 deletions
src/ppu.rs
with
3 additions
and
3 deletions
CHANGELOG.md
+
1
−
1
View file @
60426b00
...
...
@@ -17,7 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
*
*
More issues related with bad PPU handling
## [0.5.6] - 2022-11-17
...
...
This diff is collapsed.
Click to expand it.
src/ppu.rs
+
2
−
2
View file @
60426b00
...
...
@@ -417,7 +417,7 @@ impl Ppu {
// registers make sense (are within range), the window
// switch is on and the line in drawing is above WY
if
self
.switch_window
&&
self
.wx
-
7
<
DISPLAY_WIDTH
as
u8
&&
self
.wx
as
i16
-
7
<
DISPLAY_WIDTH
as
i16
&&
self
.wy
<
DISPLAY_HEIGHT
as
u8
&&
self
.ly
>=
self
.wy
{
...
...
@@ -468,7 +468,7 @@ impl Ppu {
pub
fn
read
(
&
mut
self
,
addr
:
u16
)
->
u8
{
match
addr
{
0x8000
..=
0x9
7
ff
=>
self
.vram
[(
addr
&
0x1fff
)
as
usize
],
0x8000
..=
0x9
f
ff
=>
self
.vram
[(
addr
&
0x1fff
)
as
usize
],
0xfe00
..=
0xfe9f
=>
self
.oam
[(
addr
&
0x009f
)
as
usize
],
0xff80
..=
0xfffe
=>
self
.hram
[(
addr
&
0x007f
)
as
usize
],
0xff40
=>
{
...
...
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