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
f4af0704
Verified
Commit
f4af0704
authored
1 year ago
by
João Magalhães
Browse files
Options
Downloads
Patches
Plain Diff
feat: added gbprinter test ROM
parent
c5ef259a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!23
Support for serial data transfer 🔌
Pipeline
#2502
passed
1 year ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontends/sdl/src/main.rs
+2
-1
2 additions, 1 deletion
frontends/sdl/src/main.rs
res/roms/test/gbprinter.gb
+0
-0
0 additions, 0 deletions
res/roms/test/gbprinter.gb
with
2 additions
and
1 deletion
frontends/sdl/src/main.rs
+
2
−
1
View file @
f4af0704
...
@@ -444,6 +444,7 @@ fn main() {
...
@@ -444,6 +444,7 @@ fn main() {
// creates a new Game Boy instance and loads both the boot ROM
// creates a new Game Boy instance and loads both the boot ROM
// and the initial game ROM to "start the engine"
// and the initial game ROM to "start the engine"
let
mut
game_boy
=
GameBoy
::
new
();
let
mut
game_boy
=
GameBoy
::
new
();
game_boy
.attach_stdout_serial
();
game_boy
.load_boot_default
();
game_boy
.load_boot_default
();
// creates a new generic emulator structure then starts
// creates a new generic emulator structure then starts
...
@@ -451,7 +452,7 @@ fn main() {
...
@@ -451,7 +452,7 @@ fn main() {
// ROM file and starts running it
// ROM file and starts running it
let
mut
emulator
=
Emulator
::
new
(
game_boy
);
let
mut
emulator
=
Emulator
::
new
(
game_boy
);
emulator
.start
(
SCREEN_SCALE
);
emulator
.start
(
SCREEN_SCALE
);
emulator
.load_rom
(
Some
(
"../../res/roms/
demo/pocket
.gb"
));
emulator
.load_rom
(
Some
(
"../../res/roms/
test/gbprinter
.gb"
));
emulator
.toggle_palette
();
emulator
.toggle_palette
();
emulator
.run
();
emulator
.run
();
}
}
...
...
This diff is collapsed.
Click to expand it.
res/roms/test/gbprinter.gb
0 → 100644
+
0
−
0
View file @
f4af0704
File added
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