push pushes a byte onto the stack
(value byte)
| 327 | |
| 328 | // push pushes a byte onto the stack |
| 329 | func (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 |
| 335 | func (cpu *CPU) pull() byte { |