diff --git a/src/gb.rs b/src/gb.rs
index b47f035b19b0618786328ef5e1c86f7cac0939a2..144c7d4e19f26e0416ba99daf8d165d7d70ae4be 100644
--- a/src/gb.rs
+++ b/src/gb.rs
@@ -913,6 +913,10 @@ impl GameBoy {
         self.boot_rom
     }
 
+    pub fn set_boot_rom(&mut self, value: BootRom) {
+        self.boot_rom = value;
+    }
+
     pub fn attach_null_serial(&mut self) {
         self.attach_serial(Box::<NullDevice>::default());
     }