diff --git a/lib/src/processor/memory.rs b/lib/src/processor/memory.rs index 336d60f..de7e5c6 100644 --- a/lib/src/processor/memory.rs +++ b/lib/src/processor/memory.rs @@ -40,8 +40,8 @@ enum WramBanks { bank: Box<[u8; 4096]>, }, Cgb { - #[serde_as(as = "Box<[[_; 4096]; 7]>")] - banks: Box<[[u8; 4096]; 7]>, + #[serde_as(as = "Box<[[_; 4096]; 8]>")] + banks: Box<[[u8; 4096]; 8]>, selected: usize, }, } @@ -52,7 +52,7 @@ impl Wram { bank_0: [0; 4096], banks: if cgb { WramBanks::Cgb { - banks: Box::new([[0; 4096]; 7]), + banks: Box::new([[0; 4096]; 8]), selected: 0, } } else {