Hi,
I've been going though trying to understand how the old 8-bit micros (Z80/6502) that I learnt on years ago actually work at a digital level. Looking
here on Visual6502.org and stepping through the first couple of instructions I saw this
Attachment:
File comment: screenshot
v6502.png [ 55.83 KiB | Viewed 924 times ]
During the JSR routine the docs (MCS6500) just says ADL is "stored" - from visual 6502 it looks like it does this in the S register? then just decrements ADL and then swaps them back for the last bit when it reads ADH and completes the jump. I've not been able to find confirmation of this (or the right thing to search for) - but does anyone know if this is indeed what happens?