http://www.6502.org/tutorials/6502opcodes.html#PHA
Under the Stack Instructions bit it has the following opcodes
PHA (PusH Accumulator)
PLA (PuLl Accumulator)
PHP (PusH Processor status)
PLP (PuLl Processor status)
Here's my interpretation.
PHA - copy the A-register into the memory location that the stack pointer is currently pointing at and then increment the stack pointer.
PLA - copy the value from the memory location currently pointed to by the stack pointer into the A-register and then decrement the stack pointer.
PHP - copy the status-register into the memory location that the stack pointer is currently pointing at and then increment the stack pointer.
PLP - copy the value from the memory location currently pointed to by the stack pointer into the status-register and then decrement the stack pointer.
I apologize if this seems like a silly question, I decided better to ask since there were some assumptions in the description.
Under the Stack Instructions bit it has the following opcodes
PHA (PusH Accumulator)
PLA (PuLl Accumulator)
PHP (PusH Processor status)
PLP (PuLl Processor status)
Here's my interpretation.
PHA - copy the A-register into the memory location that the stack pointer is currently pointing at and then increment the stack pointer.
PLA - copy the value from the memory location currently pointed to by the stack pointer into the A-register and then decrement the stack pointer.
PHP - copy the status-register into the memory location that the stack pointer is currently pointing at and then increment the stack pointer.
PLP - copy the value from the memory location currently pointed to by the stack pointer into the status-register and then decrement the stack pointer.
I apologize if this seems like a silly question, I decided better to ask since there were some assumptions in the description.