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

Method push

nes/cpu.go:329–332  ·  view source on GitHub ↗

push pushes a byte onto the stack

(value byte)

Source from the content-addressed store, hash-verified

327
328// push pushes a byte onto the stack
329func (cpu *CPU) push(value byte) {
330 cpu.Write(0x100|uint16(cpu.SP), value)
331 cpu.SP--
332}
333
334// pull pops a byte from the stack
335func (cpu *CPU) pull() byte {

Callers 3

push16Method · 0.95
phaMethod · 0.95
phpMethod · 0.95

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected