change initial register values for no audio pop
This commit is contained in:
parent
44ad6bdad5
commit
17a140e77c
|
@ -191,21 +191,21 @@ impl Memory {
|
||||||
|
|
||||||
pub(super) fn cpu_ram_init(&mut self) {
|
pub(super) fn cpu_ram_init(&mut self) {
|
||||||
self.set(0xFF04, 0xAD);
|
self.set(0xFF04, 0xAD);
|
||||||
self.set(0xFF10, 0x80);
|
// self.set(0xFF10, 0x80);
|
||||||
self.set(0xFF11, 0xBF);
|
// self.set(0xFF11, 0xBF);
|
||||||
self.set(0xFF12, 0xF3);
|
// self.set(0xFF12, 0xF3);
|
||||||
self.set(0xFF14, 0xBF);
|
// self.set(0xFF14, 0xBF);
|
||||||
self.set(0xFF16, 0x3F);
|
// self.set(0xFF16, 0x3F);
|
||||||
self.set(0xFF19, 0xBF);
|
// self.set(0xFF19, 0xBF);
|
||||||
self.set(0xFF1A, 0x7F);
|
// self.set(0xFF1A, 0x7F);
|
||||||
self.set(0xFF1B, 0xFF);
|
// self.set(0xFF1B, 0xFF);
|
||||||
self.set(0xFF1C, 0x9F);
|
// self.set(0xFF1C, 0x9F);
|
||||||
self.set(0xFF1E, 0xBF);
|
// self.set(0xFF1E, 0xBF);
|
||||||
self.set(0xFF20, 0xFF);
|
// self.set(0xFF20, 0xFF);
|
||||||
self.set(0xFF23, 0xBF);
|
// self.set(0xFF23, 0xBF);
|
||||||
self.set(0xFF24, 0x77);
|
// self.set(0xFF24, 0x77);
|
||||||
self.set(0xFF25, 0xF3);
|
// self.set(0xFF25, 0xF3);
|
||||||
self.set(0xFF26, 0xF1);
|
// self.set(0xFF26, 0xF1);
|
||||||
self.set(0xFF40, 0x91);
|
self.set(0xFF40, 0x91);
|
||||||
self.set(0xFF47, 0xFC);
|
self.set(0xFF47, 0xFC);
|
||||||
self.set(0xFF48, 0xFF);
|
self.set(0xFF48, 0xFF);
|
||||||
|
|
Loading…
Reference in a new issue