mirror of
https://github.com/FranLMSP/snes.git
synced 2026-08-03 08:30:01 -04:00
display PPU registers and VRAM debug info
This commit is contained in:
@@ -36,8 +36,6 @@ pub const M7B: u16 = 0x211C; // Rotation/Scaling Parameter B (and Math
|
||||
pub const M7C: u16 = 0x211D; // Rotation/Scaling Parameter C (W)
|
||||
pub const M7D: u16 = 0x211E; // Rotation/Scaling Parameter D (W)
|
||||
|
||||
pub const M7HOFS: u16 = 0x210D; // BG1 Horizontal Scroll (X) (W)
|
||||
pub const M7VOFS: u16 = 0x210E; // BG1 Vertical Scroll (Y) (W)
|
||||
pub const M7X: u16 = 0x211F; // Rotation/Scaling Center Coordinate X (W)
|
||||
pub const M7Y: u16 = 0x2120; // Rotation/Scaling Center Coordinate Y (W)
|
||||
|
||||
@@ -156,6 +154,14 @@ impl PPURegisters {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn registers(&self) -> &[u8] {
|
||||
&self.data
|
||||
}
|
||||
|
||||
pub fn vram(&self) -> &[u8] {
|
||||
&self.vram
|
||||
}
|
||||
|
||||
fn _read(&self, address: u16) -> u8 {
|
||||
self.data[(address as usize) - 0x2100]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user