Complete initial tests for startup
Some checks failed
Cargo Build & Test / Rust project - latest (stable) (push) Failing after 8s
Some checks failed
Cargo Build & Test / Rust project - latest (stable) (push) Failing after 8s
This commit is contained in:
@@ -107,6 +107,17 @@ impl DebuggerState {
|
||||
labelled_box("BG at $1000", false),
|
||||
labelled_box("Sprites at $1000", false),
|
||||
],
|
||||
column![
|
||||
labelled_box("Even frame", nes.ppu.even),
|
||||
labelled_box("BG Enabled", false),
|
||||
labelled_box("Sprites Enabled", false),
|
||||
labelled_box("BG Mask", false),
|
||||
labelled_box("Sprites Mask", false),
|
||||
labelled_box("Grayscale", false),
|
||||
labelled_box("Intensify Red", false),
|
||||
labelled_box("Intensify Green", false),
|
||||
labelled_box("Intensify Blue", false),
|
||||
],
|
||||
column![
|
||||
run_type(
|
||||
"PPU Cycles:",
|
||||
@@ -190,7 +201,7 @@ impl DebuggerState {
|
||||
DebuggerMessage::RunToScanLine => {
|
||||
Self::run_until(nes, |_, n| n.ppu.scanline == self.to_scan_line)
|
||||
}
|
||||
DebuggerMessage::RunFrames => Self::run_n_clock_cycles(nes, self.frames * 341 * 261),
|
||||
DebuggerMessage::RunFrames => Self::run_n_clock_cycles(nes, self.frames * 341 * 262),
|
||||
DebuggerMessage::Run => todo!(),
|
||||
DebuggerMessage::Pause => todo!(),
|
||||
}
|
||||
@@ -205,7 +216,7 @@ fn run_type<'a, Message: Clone + 'a>(
|
||||
) -> Element<'a, Message> {
|
||||
row![
|
||||
widget::container(text(label)).padding(2.),
|
||||
widget::container(number_input(val).on_input(update)).padding(2.),
|
||||
widget::container(number_input(val).on_input(update).on_submit(run.clone())).padding(2.),
|
||||
widget::container(button(image("./images/ic_fluent_play_24_filled.png")).on_press(run))
|
||||
.padding(2.),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user