MCPcopy
hub / github.com/fogleman/nes / Step

Method Step

nes/console.go:47–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47func (console *Console) Step() int {
48 cpuCycles := console.CPU.Step()
49 ppuCycles := cpuCycles * 3
50 for i := 0; i < ppuCycles; i++ {
51 console.PPU.Step()
52 console.Mapper.Step()
53 }
54 for i := 0; i < cpuCycles; i++ {
55 console.APU.Step()
56 }
57 return cpuCycles
58}
59
60func (console *Console) StepFrame() int {
61 cpuCycles := 0

Callers 2

StepFrameMethod · 0.95
StepSecondsMethod · 0.95

Calls 1

StepMethod · 0.65

Tested by

no test coverage detected