PEA pushes a 16-bit address onto the stack. The stack pointer is decremented by 2. This instruction is quite misleading since it is the address that is pushed on the stack, not the value stored at that address.
Keep in mind that it's always a 16-bit value push regardless of A or X and Y being 16-bit or 8-bit. It's always a 16-bit value push. Some people seem to forget this.My blog. I could post stuff now and then
Oh, thanks guys. It's like a easy form to load A in 16 bits mode right?
PEA doesn't modify A. It only sticks a 16-bit value in the stack. But you could load it back into the A register by using a PLA XBA PLA I think (or only PLA when A = 16 bits).My blog. I could post stuff now and then