During an interrupt, I do this:
Now I've seen an example where the last command before the regular code is PHP and the first command after the regular code is PLP (push and pull procssor status).
Is this necessary? Why? Why not?
Code:
PHA
TXA
PHA
TYA
PHA
; Regular code.
; ...
PLA
TAY
PLA
TAX
PLA
TXA
PHA
TYA
PHA
; Regular code.
; ...
PLA
TAY
PLA
TAX
PLA
Now I've seen an example where the last command before the regular code is PHP and the first command after the regular code is PLP (push and pull procssor status).
Is this necessary? Why? Why not?