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

Method Reset

nes/cpu.go:261–265  ·  view source on GitHub ↗

Reset resets the CPU to its initial powerup state

()

Source from the content-addressed store, hash-verified

259
260// Reset resets the CPU to its initial powerup state
261func (cpu *CPU) Reset() {
262 cpu.PC = cpu.Read16(0xFFFC)
263 cpu.SP = 0xFD
264 cpu.SetFlags(0x24)
265}
266
267// PrintInstruction prints the current CPU state
268func (cpu *CPU) PrintInstruction() {

Callers 1

NewCPUFunction · 0.95

Calls 2

Read16Method · 0.95
SetFlagsMethod · 0.95

Tested by

no test coverage detected