diff --git a/frontends/sdl/src/main.rs b/frontends/sdl/src/main.rs index af3b82c562d5faa6987b798f490a72998fe66684..d0aba46b46e09013bfaf7a01abb0db68aa37072a 100644 --- a/frontends/sdl/src/main.rs +++ b/frontends/sdl/src/main.rs @@ -444,6 +444,7 @@ fn main() { // creates a new Game Boy instance and loads both the boot ROM // and the initial game ROM to "start the engine" let mut game_boy = GameBoy::new(); + game_boy.attach_stdout_serial(); game_boy.load_boot_default(); // creates a new generic emulator structure then starts @@ -451,7 +452,7 @@ fn main() { // ROM file and starts running it let mut emulator = Emulator::new(game_boy); 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.run(); } diff --git a/res/roms/test/gbprinter.gb b/res/roms/test/gbprinter.gb new file mode 100644 index 0000000000000000000000000000000000000000..d977e91f4fadf2bd6dac94cdfbf222eb1964ac02 Binary files /dev/null and b/res/roms/test/gbprinter.gb differ