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

Function NewCPU

nes/cpu.go:175–180  ·  view source on GitHub ↗
(console *Console)

Source from the content-addressed store, hash-verified

173}
174
175func NewCPU(console *Console) *CPU {
176 cpu := CPU{Memory: NewCPUMemory(console)}
177 cpu.createTable()
178 cpu.Reset()
179 return &cpu
180}
181
182// createTable builds a function table for each instruction
183func (c *CPU) createTable() {

Callers 1

NewConsoleFunction · 0.85

Calls 3

createTableMethod · 0.95
ResetMethod · 0.95
NewCPUMemoryFunction · 0.85

Tested by

no test coverage detected