Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature fifo ppu #51

Merged
merged 54 commits into from
Sep 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
cdbee8e
Starting to implement a fifo ppu
alloncm Jun 5, 2021
3c2c2bb
WIP in the middle of the fifo ppy
alloncm Jun 12, 2021
427df0e
The fifo supposed to support the bg layer
alloncm Jul 21, 2021
35b9946
Wrap the fifo code in order to start and test it
alloncm Jul 21, 2021
9587841
WIP adding the registers to the new ppu
alloncm Jul 22, 2021
683e2df
Remove uncessary function
alloncm Jul 23, 2021
67f49ba
Add support for the registers
alloncm Jul 23, 2021
601b75e
Add gfx device and sdl gfx device
alloncm Jul 23, 2021
3ce9e29
Fix the fetiching tile number stage in the new ppu
alloncm Jul 26, 2021
3a299f7
Fix the timing issue with the fifo ppu
alloncm Jul 26, 2021
58dc36f
FIx a vblank interrupt not fired
alloncm Jul 26, 2021
a43c095
Hope I fixed the stat interrupt trigger
alloncm Jul 26, 2021
e4ba52e
More fixes for the interrupt
alloncm Jul 26, 2021
f350e62
Move the fifo stuff to its own folder
alloncm Jul 27, 2021
9bfe553
Integrate the bg fetcher
alloncm Jul 27, 2021
391b362
Add the sprite fetcher
alloncm Jul 27, 2021
58e64e2
Integrate the sprite fetcher
alloncm Jul 27, 2021
dd28221
Still implementing the sprites
alloncm Jul 28, 2021
260414d
Fix bugs u8 overflow and rendering
alloncm Jul 28, 2021
9aff501
First sprites on the screen!
alloncm Jul 28, 2021
db57edf
Fix the stat interrupt and support for hiding bg
alloncm Jul 28, 2021
e361544
Adding propper support for the window
alloncm Jul 29, 2021
16daae8
Adapt to linux and amde error message clearer
alloncm Jul 30, 2021
00e7457
Fix the window rendering
alloncm Jul 30, 2021
ecd624d
Update the readme
alloncm Jul 30, 2021
894339d
Fix sprite fetcher
alloncm Jul 30, 2021
5f845a3
Seperate the pixel x pos from the bg x pos
alloncm Jul 31, 2021
c3d0a4f
The bg stops render when a sprite has been found
alloncm Jul 31, 2021
fb470cb
Fix sprite fetcher
alloncm Aug 1, 2021
ee58381
Add support for sprite flipping on Y axis
alloncm Aug 13, 2021
33a18e5
Update the fifo for the new sprite fetcher
alloncm Aug 13, 2021
205f1fa
Trying to add support for extended sprites
alloncm Aug 13, 2021
f2c4496
Implement the extended sprites correctly.
alloncm Aug 14, 2021
e6a3755
Fix the proprity in the fifo
alloncm Aug 14, 2021
21ed932
WIP try to impement the internal sprites priority
alloncm Aug 14, 2021
46eca23
WIP Try to impl the sprite priority
alloncm Aug 15, 2021
d959651
Fix the fifo obj rendering
alloncm Aug 20, 2021
69a3e94
Arrange the bg fetcher code.
alloncm Aug 20, 2021
1926087
Fix the bg rendering
alloncm Aug 20, 2021
dff63cb
FIx the bug with the missing vertical object lines
alloncm Sep 3, 2021
f52c16c
Arrange the gameboy main code
alloncm Sep 3, 2021
dcd3e63
Merge branch 'dev' into feature-fifo_ppu
alloncm Sep 3, 2021
b71436e
Code indentation and redundant code removal
alloncm Sep 3, 2021
15b1b6c
Refactor the fetchers
alloncm Sep 4, 2021
0b3b51d
Arrange the fifo code
alloncm Sep 6, 2021
fdc2624
Arrange and rename
alloncm Sep 6, 2021
a3513c1
Change FetchingStateData to a struct from union
alloncm Sep 6, 2021
6380c55
Remove unused files and modules
alloncm Sep 6, 2021
73dbb19
Change magic numbers into consts and fix casting
alloncm Sep 6, 2021
d2fe771
Implemented the fifo DS + some tests
alloncm Sep 6, 2021
cc472ce
Clean the create array util
alloncm Sep 8, 2021
4fec856
Fix this weird bug where the image is courupted
alloncm Sep 9, 2021
4142854
Fix the window rendering, passing the turtle tests
alloncm Sep 9, 2021
b4347cd
SCR
alloncm Sep 9, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
338 changes: 338 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[workspace]
members = [
"gb",
"lib_gb"
]
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ Curerently there is no Support (support is planned in the future)
- [The GameBoy Programming Manual](http://index-of.es/Varios-2/Game%20Boy%20Programming%20Manual.pdf)
- [gbdev gameboy sound hardware](https://gbdev.gg8.se/wiki/articles/Gameboy_sound_hardware)
- [Hactix's awsome blog post](https://hacktix.github.io/GBEDG/)
- [Nightshade's awsome blog post](https://nightshade256.github.io/2021/03/27/gb-sound-emulation.html)
- [Nightshade's awsome blog post](https://nightshade256.github.io/2021/03/27/gb-sound-emulation.html)
- [The Ultimate GameBoy Talk](https://www.youtube.com/watch?v=HyzD8pNlpwI)
Loading