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

Across Page Boundaries Question



    Does "Across Page Boundaries" mean if branch goes beyond $FFFF that
wraps back to $0000?

    Or do it occur between $100 pages?  For example branch goes between
$2120 and $2220, $2510 and $2610.

    For example,

    2000: LDA #C1
    2002: CMP #C1
    2004: BCS 2010
    2006: BCC 1FF0

    If #C1 = #C1 is true, then BCS executes to $2010 that "Across Page
Boundaries" should not occur otherwise it is false, then BCC executes to
$1FF0 that "Across Page Boundaries" should occur.

Or...

    FFC0: LDA #C1
    FFC2: CMP #C1
    FFC4: BCS FFD0
    FFC6: BCC 0010

    If #C1 = #C1 is true, then BCS executes to $FFD0 that "Across Page
Boundaries" should not occur otherwise it is false, then BCC executes to
$0010 that "Across Page Boundaries" should occur.

    Which is correct?  Please advise.

--
Yours Truly,

Bryan Parkoff
BParkoff@satx.rr.com