aboutsummaryrefslogblamecommitdiff
path: root/src/memory.rs
blob: 0c07329037889e5935c6c21795ce92f65e945807 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                    
             
                 
                          
                           
                        
                        
 

                                    
                                             

 



















                                                                                   
                          
                     
                     
                                      

                                 


                        
               
                                                 

                                                      
                                  
                                  
                                     
     
 






                                                   
     



                                     


                                     
                          
                                               
                                 
                              
                                            


                                          
             

                                 

                                                                             

                      


                                 
                                           

         
 
                                              


                                     
                          
                                                       

                                 






                                                                      
                                            
                          





                                                                             
             


                                                      



                                                                



                                 
                                                      
         



                          



                                      

 
                        

                                                 
                  


                                  
                   


     







                                  
                 
                                                        

                               
                                                                       

 

                                         




                                      
                        
                     
                                                   
                                                                                  


                     


                                                       

                     

                                                                                         


                     


                                                              

                     
                                                
                                       



                                                 
                                                   


     
                                 

                                         
                          
                                  
                                 
                                                        
                                 
                                                     
                
                                                               

         
 
                                                  
                       
                          
                                          
                                 
                                                                
                                 
                                                             
                
                                                                

         
 
 
#![allow(dead_code)]
use ppu::PPU;
use mos6502::CPU;
use cartridge::MirrorType;
use controller::Controller;
use core::cell::RefCell;
use core::ptr::null_mut;

pub trait VMem {
    fn read(&self, addr: u16) -> u8;
    fn write(