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

Method rts

nes/cpu.go:830–832  ·  view source on GitHub ↗

RTS - Return from Subroutine

(info *stepInfo)

Source from the content-addressed store, hash-verified

828
829// RTS - Return from Subroutine
830func (cpu *CPU) rts(info *stepInfo) {
831 cpu.PC = cpu.pull16() + 1
832}
833
834// SBC - Subtract with Carry
835func (cpu *CPU) sbc(info *stepInfo) {

Callers

nothing calls this directly

Calls 1

pull16Method · 0.95

Tested by

no test coverage detected