Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion fpt/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![feature(bigint_helper_methods)]
#![feature(array_chunks)]
#![feature(iter_intersperse)]
#![feature(extend_one)]

use std::collections::VecDeque;

Expand Down Expand Up @@ -46,7 +47,7 @@ impl Gameboy {
}

/// Sets CPU and hardware registers to the values found in the DMG0 column in the tables at
/// https://gbdev.io/pandocs/Power_Up_Sequence.html#console-state-after-boot-rom-hand-off
/// <https://gbdev.io/pandocs/Power_Up_Sequence.html#console-state-after-boot-rom-hand-off>
pub fn boot_fake(&mut self) {
// CPU registers
self.cpu.set_af(0x0100);
Expand Down
1 change: 1 addition & 0 deletions fpt/src/lr35902.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ impl LR35902 {
self.bus.write(index as usize, value);
// TODO: watchpoint trigger write
// Write triggers (TODO: better solution)
// TODO: fds do this inside the memmory
if index == memory::map::BANK as u16 && value != 0 {
self.bus.unload_bootrom();
}
Expand Down
Loading