+Dave C Posted September 7, 2021 Share Posted September 7, 2021 Note: I'm assuming this is all old news (I can see threads about the stack on these forums and various stack manipulations in old games)... anyway... Working through some code I've been working I realized I had a bug where I wasn't initializing the stack pointer ...In the case of the code I had written ...somehow in Stella this all turned out to somehow do what I had originally intended... so I didn't notice at first... What I'm wondering about is if the stack is pointing at 00 (i.e., not RAM) are pha/pla going to have the same effect as lda/sta. When I wrote some test code (below) the pla and lda never return the same value. With actual hardware I assume the TIA wouldn't know/care whether an lda/pla is trying to address it...? lda #$ff ldx #$00 txs pha pla lda $00 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.