NESDev and Strangulation Records messageboards
Forum Index | FAQ | New User | Login | Search

Previous ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: so just to clarify  
Posted byDisch
Posted on4/20/04 04:46 AM
From IP66.82.9.61  



> so if lda $00,y is instructed

It would actyally be LDA ($00),Y (can't forget the parenthesis, without them, you're using zero page mode).

Anyway, in that example, A would be loaded with what's at $C005. The value of Y is added to the adress at $00 (which was $C000). If Y + the LSB is greater than $FF.. the page boundary WILL be crossed as expected (at the cost of 1 more CPU cycle).

So in your bottom example... it would be reading from $C015. But again... don't forget the parenthesis.


"LDA ($00),Y" is not the same as "LDA $00,Y"



-
Entire Thread
Subject  Posted byPosted On
*indexedaddressing spanning pages?  kik4/19/04 04:53 AM
.*Re: indexedaddressing spanning pages?  doppel^_^4/19/04 04:59 AM
..*Re: indexedaddressing spanning pages?  Disch4/19/04 3:15 PM
...*so just to clarify  kik4/20/04 04:19 AM
.....Re: so just to clarify  Disch4/20/04 04:46 AM
.....*thx  kik4/21/04 00:19 AM
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo