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

Method rti

nes/cpu.go:824–827  ·  view source on GitHub ↗

RTI - Return from Interrupt

(info *stepInfo)

Source from the content-addressed store, hash-verified

822
823// RTI - Return from Interrupt
824func (cpu *CPU) rti(info *stepInfo) {
825 cpu.SetFlags(cpu.pull()&0xEF | 0x20)
826 cpu.PC = cpu.pull16()
827}
828
829// RTS - Return from Subroutine
830func (cpu *CPU) rts(info *stepInfo) {

Callers

nothing calls this directly

Calls 3

SetFlagsMethod · 0.95
pullMethod · 0.95
pull16Method · 0.95

Tested by

no test coverage detected