read_external function

This commit is contained in:
2023-07-07 19:13:31 -05:00
parent e7a40db745
commit e6d97f7203
5 changed files with 46 additions and 14 deletions
+4
View File
@@ -164,6 +164,10 @@ impl PPURegisters {
self.data[(address as usize) - 0x2100] = value;
}
pub fn read_external(&self, address: u16) -> u8 {
self._read(address)
}
pub fn read(&mut self, address: u16) -> u8 {
let result = self._read(address);
match address {