pull pops a byte from the stack
()
| 333 | |
| 334 | // pull pops a byte from the stack |
| 335 | func (cpu *CPU) pull() byte { |
| 336 | cpu.SP++ |
| 337 | return cpu.Read(0x100 | uint16(cpu.SP)) |
| 338 | } |
| 339 | |
| 340 | // push16 pushes two bytes onto the stack |
| 341 | func (cpu *CPU) push16(value uint16) { |