tudelft_nes_ppu/
lib.rs

1/// The height of the NES output video signal
2pub const WIDTH: u32 = 256;
3/// The width of the NES output video signal
4pub const HEIGHT: u32 = 240;
5
6/// CPU frequency constant. This assumes NTSC emulation (instead of PAL).
7/// That's also what's emulated in the rest of the ppu.
8pub const CPU_FREQ: f64 = 1.789_773 * 1_000_000.0; //hz
9
10mod cpu;
11mod ppu;
12mod run;
13mod screen;
14
15pub use cpu::Cpu;
16pub use ppu::mirroring::Mirroring;
17pub use ppu::{registers::PpuRegister, Ppu};
18pub use run::{run_cpu, run_cpu_headless, run_cpu_headless_for};
19pub use screen::Buttons;