From 0fbb7ea472e996af043f1cf2629d32d9cdc504b3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com>
Date: Tue, 5 Jul 2022 10:23:04 +0100
Subject: [PATCH] feat: new rom files

---
 res/boot/dmg_bootix.bin | Bin 0 -> 256 bytes
 res/boot/mgb_bootix.bin | Bin 0 -> 256 bytes
 src/gb.rs               |  10 +++++++++-
 3 files changed, 9 insertions(+), 1 deletion(-)
 create mode 100644 res/boot/dmg_bootix.bin
 create mode 100644 res/boot/mgb_bootix.bin

diff --git a/res/boot/dmg_bootix.bin b/res/boot/dmg_bootix.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!R6lsg<sNDn-#uFc=8DY
z-O>K&Bt(!`;rq!7B^F+VUnkx9Sk@msEg*gnh<O#hDk&=|pR{q>xpe1JCmV*46@Q%k
j{X;w>^jv)170L|tj2P_xA7kW}yP@dI$N&d+j1K|;qB~x;

literal 0
HcmV?d00001

diff --git a/res/boot/mgb_bootix.bin b/res/boot/mgb_bootix.bin
new file mode 100644
index 0000000000000000000000000000000000000000..3861e23f477c1e23a2ff441b1a0151c5f120852c
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
z2kydra%Yz_te*fBg0MCyJb2)2*L-$91DJ1j5Xchz#Q4GG-votU(p8%kzDjuV2?O2H
z{^%q`kXPaR$qFSFUWH#L-T7G7A3ZG~eh`Rx6}~DdD=D9}aoV|b=TavdhL9D1oc#Sm
iJR|g6eBBkw4E2l{?EW8P<d(ak=*!3e2X_A-1ONcgr(hQV

literal 0
HcmV?d00001

diff --git a/src/gb.rs b/src/gb.rs
index 286fdc4b..2910563a 100644
--- a/src/gb.rs
+++ b/src/gb.rs
@@ -66,10 +66,18 @@ impl GameBoy {
         self.load_boot(&data);
     }
 
-    pub fn load_boot_default(&mut self) {
+    pub fn load_boot_dmg_f(&mut self) {
         self.load_boot_file("./res/boot/dmg_boot.bin");
     }
 
+    pub fn load_boot_sgb_f(&mut self) {
+        self.load_boot_file("./res/boot/sgb_boot.bin");
+    }
+
+    pub fn load_boot_default(&mut self) {
+        self.load_boot_dmg_f();
+    }
+
     pub fn load_boot_dmg(&mut self) {
         self.load_boot(&DMG_BOOT);
     }
-- 
GitLab