6502 cycles and subtleties (was Re: Assembly on a Apple IIc+)

From: pete_at_dunnington.u-net.com <(pete_at_dunnington.u-net.com)>
Date: Sun Feb 9 15:21:00 2003

On Feb 9, 10:55, Eric Smith wrote:
> > Are you sure? My understanding is that PLP and PLA increment the
stack
> > pointer *before* fetching the byte off the stack.
> [...]
> > Maybe you're thinking of PHP and PHA ([SP]:=A; SP:=SP+1), which
take one
> > cycle less than PLP/PLA?
>
> You're right, I was confused.

Phew! I was beginning to wonder if the 6502 is more bizarre than I
already knew :-) You missed the mistake though -- I should have
written SP:=SP-1 (no it wasn't a test, I only just noticed).

-- 
Pete						Peter Turnbull
						Network Manager
						University of York
Received on Sun Feb 09 2003 - 15:21:00 GMT

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:35:54 BST