src/emulator/NES.js
// Steps everything to the next clock cycle
Steps everything to the next clock cycle
Steps everything to the next clock cycle
step() {
        let cpuCycles = this.CPU.step()
        let ppuCycles = cpuCycles * 3
        for (let i = 0; i < ppuCycles; i++) {
            this.PPU.step()
            this.mapper.step()
        }
        for (let i = 0; i < cpuCycles; i++) {
            this.APU.step()
        }
        return cpuCycles;
    }
step ( ) { let cpuCycles = this . CPU . step ( ) let ppuCycles = cpuCycles * 3 for ( let i = 0 ; i < ppuCycles ; i ++ ) { this . PPU . step ( ) this . mapper . step ( ) } for ( let i = 0 ; i < cpuCycles ; i ++ ) { this . APU . step ( ) } return cpuCycles ; }
Steps everything to the next clock cycle
Steps everything to the next clock cycle