neser 0.1.1

NESER - NES Emulator in Rust - is a NES emulator written in Rust. It aims to be a high-quality, hardware-accurate emulator that is also easy to use and extend. It supports a wide range of NES games and features, including various mappers, audio processing, and input handling. NESER is designed to be modular and extensible, allowing developers to easily add new features or support for additional hardware. It can be run using one of two frontends: a native desktop application using SDL2, or a web application using WebAssembly. The desktop application provides a high-performance, feature-rich experience with support for various input devices and display options, while the web application allows users to play NES games directly in their browsers without needing to install any software in a BYOR manner (Bring Your Own Roms).
Documentation
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct CpuRegsSnapshot {
    pub pc: u16,
    pub a: u8,
    pub x: u8,
    pub y: u8,
    pub sp: u8,
    pub p: u8,
    pub cycles: u64,
    pub frame_count: u64,
    pub scanline: u16,
    pub pixel: u16,
    pub interrupt: Option<crate::cpu::InterruptKind>,
    pub nmi_vector: u16,
    pub reset_vector: u16,
    pub irq_vector: u16,
}

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct CpuDisasmLineSnapshot {
    pub addr: u16,
    pub bytes: Vec<u8>,
    pub text: String,
    pub is_current: bool,
}

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct MemoryWatchEntrySnapshot {
    pub address: u16,
    pub value: u8,
}

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct CpuTraceLineSnapshot {
    pub addr: u16,
    pub bytes: Vec<u8>,
    pub text: String,
}

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct DebuggerSnapshot {
    pub cpu_regs: CpuRegsSnapshot,
    pub prg_hexdump_base: u16,
    pub prg_hexdump_bytes: Vec<u8>,
    pub cpu_disasm: Vec<CpuDisasmLineSnapshot>,
    pub cpu: String,
    pub ppu: String,
    pub apu: String,
    /// Raw OAM data: 256 bytes (64 sprites × 4 bytes: Y, tile, attrs, X).
    pub oam: Vec<u8>,
    /// Memory watch entries with live values from CPU address space.
    pub watch_values: Vec<MemoryWatchEntrySnapshot>,
    /// Most recent executed CPU instructions (bounded ring buffer tail).
    pub recent_trace: Vec<CpuTraceLineSnapshot>,
}

#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
pub struct CpuDisasmWindowState {
    pub(super) start: Option<u16>,
}