From dbbf87af5263d0e44e63dc3d372ca7d3f23edd4a Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Fri, 24 Sep 2021 16:15:55 -0300 Subject: [PATCH] chore: add a creative-commons boot rom for compat --- README.md | 7 +++++-- bin/bootix_dmg.bin | Bin 0 -> 256 bytes src/cpu.rs | 1 + src/emu.rs | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 bin/bootix_dmg.bin diff --git a/README.md b/README.md index b6f32fa..ee3a902 100644 --- a/README.md +++ b/README.md @@ -15,11 +15,11 @@ * [ ] MBC1M * [x] MBC2 * [x] MBC5 +* Implements a cycle-accurate PPU FIFO + * Doesn't \*exactly\* work right just yet Supports: ROM-only, MBC1, MBC2, MBC3 and MBC5 games. -* Implements a cycle-accurate PPU FIFO - * Doesn't \*exactly\* work right just yet ### Controls @@ -33,3 +33,6 @@ Key | Button Shift | SELECT Then use the Arrow keys for the D-Pad + +### Credits +The Boot ROM found in the `bin/` directory was made by [Optix](https://github.com/Hacktix) over [here](https://github.com/Hacktix/Bootix) \ No newline at end of file diff --git a/bin/bootix_dmg.bin b/bin/bootix_dmg.bin new file mode 100644 index 0000000000000000000000000000000000000000..73deaa3c5c7be3c02d8dab9898bec621f1cfd681 GIT binary patch literal 256 zcmXr~_h0e<{PjksYZQL*2`Z}nw`(wZ#AEjvM3fsn5@cai6ljn-yMsaMv^kIzuKs7D z@Imkl0~?2wu#z&X!cRq(nT$M)XE!p~NtP?B%;e(%F(*E7U=t9$!cg(RnYH@g4Gk8l z2kydrGG~`Fte*fBg0MCyJb2)2*L-$91D`rj#_k}HCD_II!R6lsgK&Bt(!`;rq!7B^F+VUnkx9Sk@msEg*gnhxpe1JCmV*46@Q%k j{X;w>^jv)170L|tj2P_xA7kW}yP@dI$N&d+j1K|;qB~x; literal 0 HcmV?d00001 diff --git a/src/cpu.rs b/src/cpu.rs index a52186b..e0c12a7 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -15,6 +15,7 @@ pub struct Cpu { } impl Cpu { + #[allow(dead_code)] pub(crate) fn without_boot() -> Self { Self { reg: Registers { diff --git a/src/emu.rs b/src/emu.rs index 5b63205..69574fa 100644 --- a/src/emu.rs +++ b/src/emu.rs @@ -160,7 +160,7 @@ pub mod build { pub fn finish(mut self) -> Emulator { let mut emu = Emulator::new(match self.boot { Some(rom) => Cpu::with_boot(rom), - None => Cpu::without_boot(), + None => Cpu::with_boot(*include_bytes!("../bin/bootix_dmg.bin")), }); if let Some(rom) = self.cart.take() {