pull16 pops two bytes from the stack
()
| 347 | |
| 348 | // pull16 pops two bytes from the stack |
| 349 | func (cpu *CPU) pull16() uint16 { |
| 350 | lo := uint16(cpu.pull()) |
| 351 | hi := uint16(cpu.pull()) |
| 352 | return hi<<8 | lo |
| 353 | } |
| 354 | |
| 355 | // Flags returns the processor status flags |
| 356 | func (cpu *CPU) Flags() byte { |