Exemplo n.º 1
0
        public Mapper001(Cartridge cartridge)
        {
            this.cartridge = cartridge;

            PRGOffsets[0] = 0;
            PRGOffsets[1] = (cartridge.PRGROM_16KBankCount - 1) * 0x4000;
        }
Exemplo n.º 2
0
 public NESConsole(Cartridge cartridge)
 {
     this.cartridge = cartridge;
     this.mapper = cartridge.getMapper();
     this.memory = new Memory(this);
     this.cpu = new CPU(this);
     this.ppu = new PPU(this);
     this.apu = new APU();
     this.io = new IO(KeyboardController.DEFAULT_PLAYER_ONE_CONTROLLER, KeyboardController.DEFAULT_PLAYER_TWO_CONTROLLER);
     //this.io = new IO(new FM2TASController("C:\\roms\\philc2-donkeykong.fm2", 1, this), KeyboardController.DEFAULT_PLAYER_TWO_CONTROLLER);
 }
Exemplo n.º 3
0
 public NESConsole(Cartridge cartridge)
 {
     this.cartridge = cartridge;
     this.mapper    = cartridge.getMapper();
     this.memory    = new Memory(this);
     this.cpu       = new CPU(this);
     this.ppu       = new PPU(this);
     this.apu       = new APU();
     this.io        = new IO(KeyboardController.DEFAULT_PLAYER_ONE_CONTROLLER, KeyboardController.DEFAULT_PLAYER_TWO_CONTROLLER);
     //this.io = new IO(new FM2TASController("C:\\roms\\philc2-donkeykong.fm2", 1, this), KeyboardController.DEFAULT_PLAYER_TWO_CONTROLLER);
 }
Exemplo n.º 4
0
        private void initializeSystem()
        {
            cart = new Cartridge("C:\\roms\\lolo.nes");
            system = new NESConsole(cart);
            system.cpu.coldBoot();
            system.ppu.coldBoot();

            system.ppu.setLoggerEnabled(false);
            system.cpu.setLoggerEnabled(false);
            system.io.setLoggerEnabled(false);
        }
Exemplo n.º 5
0
 public Mapper000(Cartridge cartridge)
 {
     this.cartridge = cartridge;
 }