fixed colors on the PPU
This commit is contained in:
+3
-1
@@ -79,6 +79,7 @@ fn run_dbg(path: &str) {
|
||||
let mut cpu = Cpu::new();
|
||||
cpu.reset(&mut bus);
|
||||
let mut dumper = dump::Dumper::new();
|
||||
let mut renderer = PpmRenderer::new(); // <-- add this
|
||||
let frames: u32 = 360;
|
||||
|
||||
for f in 0..frames {
|
||||
@@ -87,8 +88,9 @@ fn run_dbg(path: &str) {
|
||||
bus.tick_ppu(cycles as u64);
|
||||
if bus.take_nmi() { cpu.set_nmi(); }
|
||||
}
|
||||
renderer.present(bus.framebuffer(), 256, 240); // <-- and this
|
||||
dumper.snapshot(f, &bus, &cpu);
|
||||
bus.begin_frame();
|
||||
}
|
||||
println!("wrote debug_out/ (state.txt + pctrace.txt), {frames} frames");
|
||||
println!("wrote debug_out/ + renders/, {frames} frames");
|
||||
}
|
||||
Reference in New Issue
Block a user