[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Page Boundary Question



Bryan,
I have no way to test the actual number of cycles used.
Every book I have says add one cycle if the branch is taken, add 2 cycles if
branching to a different page.

  Specifically, the signed displacement is added to the (address) of the
signed displacement . +127 TO -128



"Bryan Parkoff" <spam> wrote in message
ueWdna92Ct51kXOjXTWcqg@texas.net">news:ueWdna92Ct51kXOjXTWcqg@texas.net...
> Laine,
>
>     I know the trick how to use ADC's magic.  One extra cycle is always
> added while $20FF goes into $2100.  The problem is that it will not add
one
> extra cycle if $2000 goes into $1FFF.  The 6502 Reference Manual says that
> $1FFF + 1 will add one cycle, but $2000 - 1 will not add one cycle.
>     The positive always adds one cycle, but how can negative works?